N = int(eval(input()))

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

s = set(l)

if len(s)==3:

  print('Three')

else:

  print('Four')
n = int(eval(input()))

l = list(input().split())

if len(set(l)) == 4:

    print('Four')

else:

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

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

-N = int(eval(input())) -l = list(map(str, input().split())) -s = set(l) -if len(s) == 3: +n = int(eval(input())) +l = list(input().split()) +if len(set(l)) == 4: +    print("Four") +else: -else: -    print("Four")