import java.util.*; public class Ex { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = sc.nextInt(); String next = sc.nextLine(); int[] ary = new int[count]; for (int i = 0; i < count; i++) { String line = sc.nextLine(); ary[i] = Integer.parseInt(line.substring(11, line.indexOf(" ", 11))) + 1; } for (int value : ary) { System.out.println("Hitsuji ga " + value + " hiki"); } } }