eval(input())

s=input().split()

print(('Four' if 'Y' in s else 'Three'))
n=int(eval(input()))

s=set(input().split())



print(('Three' if len(s)==3 else 'Four'))
eval(input())
s = input().split()
print(("Four" if "Y" in s else "Three"))

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

-eval(input()) -s = input().split() -print(("Four" if "Y" in s else "Three")) +n = int(eval(input())) +s = set(input().split()) +print(("Three" if len(s) == 3 else "Four"))