t = int(input()) for i in range(t): n = int(input().split()[2]) print('Hitsuji ga', n + 1, 'hiki')