T=int(input()) for i in range(T): S=input().split() print("Hitsuji ga %d hiki"%(int(S[2])+1))