T = int(input()) for _ in range(T): print('Hitsuji ga', int(input().split()[2]) + 1, 'hiki', flush=False)