N = int(input()) ls = [] for i in range(N): a,b,c,d = input().split() ls.append(int(c)+1) for i in range(N): print('Hitsuji ga {} hiki'.format(ls[i]))