t = int(input()) for i in range(t): hgNh = input().split() n = int(hgNh[2]) ans = "Hitsuji ga " ans += str(n + 1) ans += " hiki" print(ans)