N = int(eval(input()))

print(('Four' if 'Y' in input().split() else 'Three'))

N = int(eval(input()))

src = input().split()

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

N = int(eval(input()))
src = input().split()
print(("Three" if len(set(src)) == 3 else "Four"))

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