n=int(eval(input()))

s=list(map(str,input().split()))

total=[]

for i in range(n):

    if s[i] not in total:

        total.append(s[i])

print(('Three' if len(total)==3 else 'Four'))
eval(input())

l=list(map(str,input().split()))

print(('Three' if len(set(l))==3 else 'Four'))
n = int(eval(input()))
s = list(map(str, input().split()))
total = []
for i in range(n):
    if s[i] not in total:
        total.append(s[i])
print(("Three" if len(total) == 3 else "Four"))

eval(input())
l = list(map(str, input().split()))
print(("Three" if len(set(l)) == 3 else "Four"))

-n = int(eval(input())) -s = list(map(str, input().split())) -total = [] -for i in range(n): -    if s[i] not in total: -        total.append(s[i]) -print(("Three" if len(total) == 3 else "Four")) +eval(input()) +l = list(map(str, input().split())) +print(("Three" if len(set(l)) == 3 else "Four"))