N=eval(input())

S=input().split()

print(("Three" if len(set(S))==3 else "Four"))
N=eval(input())

S=eval(input())

print(("Four" if "Y" in S else "Three"))
N = eval(input())
S = input().split()
print(("Three" if len(set(S)) == 3 else "Four"))

N = eval(input())
S = eval(input())
print(("Four" if "Y" in S else "Three"))

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