n = int(eval(input()))

s = input().split()

s = set(s)

print(('Four' if len(s) == 4 else 'Three'))
n = int(eval(input()))

s = input().split()

print(('Four' if len(set(s)) == 4 else 'Three'))
n = int(eval(input()))
s = input().split()
s = set(s)
print(("Four" if len(s) == 4 else "Three"))

n = int(eval(input()))
s = input().split()
print(("Four" if len(set(s)) == 4 else "Three"))

-s = set(s) -print(("Four" if len(s) == 4 else "Three")) +print(("Four" if len(set(s)) == 4 else "Three"))