a = int(eval(input()))

b = {}

c = list(input().split())

for i in range(a):

    b[c[i]] = 1

print(("Three" if len(b) == 3 else "Four"))

a = int(eval(input()))

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

c = {}

for i in b:

    c[i] = 1

print(("Three" if len(c) == 3 else "Four"))

a = int(eval(input()))
b = {}
c = list(input().split())
for i in range(a):
    b[c[i]] = 1
print(("Three" if len(b) == 3 else "Four"))

a = int(eval(input()))
b = list(map(str, input().split()))
c = {}
for i in b:
    c[i] = 1
print(("Three" if len(c) == 3 else "Four"))

-b = {} -c = list(input().split()) -for i in range(a): -    b[c[i]] = 1 -print(("Three" if len(b) == 3 else "Four")) +b = list(map(str, input().split())) +c = {} +for i in b: +    c[i] = 1 +print(("Three" if len(c) == 3 else "Four"))