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