T = int(input()) for _ in range(T): a,b,c,d = map(str,input().split()) c = int(c)+1 print("Hitsuji ga",c,"hiki")