// Arup Guha
// 3/11/2019
// Solution to 2019 UCF HS Contest Problem: Catchy Song

import java.util.*;

public class song {

	public static void main(String[] args) {
		
		Scanner stdin = new Scanner(System.in);
		int numCases = stdin.nextInt();
		
		// Process each case.
		for (int loop=1; loop<=numCases; loop++) {
			
			// Case header.
			System.out.println("Stanza #"+loop+":");
			
			// Repeat the phrase.
			int rep = stdin.nextInt();
			for (int i=0; i<rep; i++)
				System.out.println("This song's gonna get stuck inside yo'");
			System.out.println("head");
			
			// Blank line after case.
			System.out.println();
		}
	}
}