// Arup Guha
// 3/12/2018
// Solution to 2018 UCF HS Contest Problem: Me Llamo, Jaime

import java.util.*;
import java.io.*;

public class fort {

	public static void main(String[] args) throws Exception {

		BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
		int nC = Integer.parseInt(stdin.readLine().trim());

		// Process each case.
		for (int loop=0; loop<nC; loop++) {

			// Get the attempt.
			String pswd = stdin.readLine().trim();

			// This is all the question is asking.
			if (pswd.equals("hey guys"))
				System.out.println("hey guys");
			else
				System.out.println("buzz");
		}
	}
}