N = int(eval(input()))

S = set(input().split())

print(('Three' if len(S) == 3 else 'Four'))
N = int(eval(input()))

S = input().split()

print(('Four' if 'Y' in S else 'Three'))
N = int(eval(input()))
S = set(input().split())
print(("Three" if len(S) == 3 else "Four"))

N = int(eval(input()))
S = input().split()
print(("Four" if "Y" in S else "Three"))

-S = set(input().split()) -print(("Three" if len(S) == 3 else "Four")) +S = input().split() +print(("Four" if "Y" in S else "Three"))