N = int(eval(input()))

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

if S.count("Y") == 0:

  print("Three")

else:

  print("Four")
N = int(eval(input()))

for i in (list(input().split())):

        if i == "Y":

                print("Four")

                exit()



print("Three")
N = int(eval(input()))
S = list(map(str, input().split()))
if S.count("Y") == 0:
    print("Three")
else:
    print("Four")

N = int(eval(input()))
for i in list(input().split()):
    if i == "Y":
        print("Four")
        exit()
print("Three")

-S = list(map(str, input().split())) -if S.count("Y") == 0: -    print("Three") -else: -    print("Four") +for i in list(input().split()): +    if i == "Y": +        print("Four") +        exit() +print("Three")