Problem:
 Score : 200 points    Problem Statement In Japan, people make offerings called hina arare , colorful crackers, on March 3 .  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i -th arare was S_i , where colors are represented as follows - pink: P , white: W , green: G , yellow: Y .  If the number of colors of the arare in the bag was three, print Three ; if the number of colors was four, print Four .      Constraints  1 \leq N \leq 100  S_i is P , W , G or Y .  There always exist i , j and k such that S_i= P , S_j= W and S_k= G .         Input Input is given from Standard Input in the following format:  N  S_1  S_2  ...  S_N       Output If the number of colors of the arare in the bag was three, print Three ; if the number of colors was four, print Four .        Sample Input 1 6
G W Y P Y W      Sample Output 1 Four  The bag contained arare in four colors, so you should print Four .       Sample Input 2 9
G W W G P W P G G      Sample Output 2 Three  The bag contained arare in three colors, so you should print Three .       Sample Input 3 8
P Y W G Y W Y Y      Sample Output 3 Four

Solution (Python):
n = int(raw_input())
s = map(str, raw_input().split())
a = len(list(set(s)))
if a == 4:
	print 'Four'
else:
	print 'Three'

Solution (Python):

N = int(input())
List=list(input().split())
if List.count('Y') >0:
    print('Four')
else:
    print('Three')

Solution (Python):
n = int(input())
s = input()
print('Four' if 'Y' in s else 'Three')

Solution (Python):
n=int(input())
s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("Four")
else:
    print("Three")

Solution (Python):
N = input()
S = input().split()

if "Y" in S:
    print("Four")
else:
    print("Three")

Solution (Python):
n = int(input())
a = list(map(str, input().split()))
if 'Y' in a:
    print('Four')
else:
    print('Three')

Solution (Python):
n=int(input())
s=input().split()
ans=len(set(s))
if ans==3:
    print("Three")
else:
    print("Four")

Solution (Python):
input();print('TFhoruere'['Y'in input()::2])

Solution (Python):
N = int(input())
S = list(map(str, input().split()))
kind = len(set(S))
if kind == 3:
    print("Three")
elif kind == 4:
    print("Four")

Solution (Python):
N = int(input())
S = input()
print('Four' if 'Y' in S else 'Three')

Solution (Python):
N = int(input())
S = input().split()

S.sort()
count = 0
tmp = ''
for s in S:
    if tmp != s:
        count += 1
    tmp = s
if count == 3:
    print('Three')
else:
    print('Four')

Solution (Python):
n = input()
s = input()
if "Y" in s:
  print("Four")
else:
  print("Three")

Solution (Python):
n = int(input())
print('Four' if 'Y' in list(input().split()) else 'Three')

Solution (Python):
N = int(input())
S = input().split()

if S.count('Y') > 0:
    print('Four')
else:
    print('Three')

Solution (Python):
N = int(input())
S = list(input().split())
print('Three' if len(set(S))==3 else 'Four')

Solution (Python):
n = int(input())
s = set(map(str,input().split()))
if len(s) == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
a=int(input())
ans="Three"
for s in input().split():
  if s=="Y":
    ans="Four"
    break
print(ans)

Solution (Python):


n = input()
s = list(input().split())

yellow = False

for i in range(len(s)):
    if s[i] == "Y":
        yellow = True
        break

if yellow:
    print("Four")
else:
    print("Three")

Solution (Python):
N = int(input())
s = input().split()
a = set()
for i in range(N):
    a.add(s[i])
l = list(a)
if len(l)==3:
    print("Three")
else:
    print("Four")

Solution (Python):
import collections
n = int(input())
s = input().split()
if len(collections.Counter(s)) == 4:
    print("Four")
else:
    print("Three")

Solution (Python):
N = int(input())
S = [i for i in input().split()]

if S.count("Y") == 0:
    print("Three")
else:
    print("Four")

Solution (Python):
import collections as c
ip = lambda : map(int, input().split())


N = int(input())
mp = {3:'Three',4:'Four'}
print(mp[len(c.Counter(input()))-1])

Solution (Python):
n = int(input())
s_list = set(input().split())
if len(s_list) == 3:
    print('Three')
elif len(s_list) == 4:
    print('Four')

Solution (Python):
N = int(input())
S = list(input().split())
if len(set(S)) == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
n = int(input())
s = list(input().split())

if "Y" in s:
    print("Four")
else:
    print("Three")

Solution (Python):
from sys import stdin
n = int(stdin.readline().rstrip())
sl = [_ for _ in stdin.readline().rstrip().split()]
if len(set(sl)) == 4:
    print('Four')
else:
    print('Three')

Solution (Python):
n=int(input())
l=set(map(str,input().split()))
if len(l)==3:
    print("Three")
else:
    print("Four")

Solution (Python):
def sortex(X):
  b=sorted(X)
  b.append("null")
  a=[]
  for i in range(len(X)):
    if b[i]!=b[i+1]:a.append(b[i])
  return a
n,s=int(input()),input().split();s=sortex(s);print("Four"if len(s)==4else"Three")

Solution (Python):
N = input()
S = input()
print('Four' if 'Y' in S else 'Three')

Solution (Python):
N = input()
S = set(input().split())
print('Four' if len(S) == 4 else 'Three')

Solution (Python):



import sys
 

def isfour(s):
  for i in s:
    if i == 'Y':
      return True
  return False


input()
if isfour(list(map(str, sys.stdin.readline().rstrip().split()))):
  print("Four")
else:
  print("Three")

Solution (Python):



import sys
 

def isfour(s):
  for i in s:
    if i == 'Y':
      return True
  return False


input()
s = list(map(str, sys.stdin.readline().rstrip().split()))
if isfour(s):
  print("Four")
else:
  print("Three")

Solution (Python):

n = int(input())
s = list(input().split())
if(s.count('Y')==0):
    print("Three")
else:
    print("Four")

Solution (Python):
n=int(input())
s=list(input().split())
ss=list(set(s))
if len(ss) == 4:
    print('Four')
else:
    print('Three')

Solution (Python):
N=int(input())
S=list(input().split())
ans='Three'
if 'Y' in S:
    ans='Four'
print(ans)

Solution (Python):
N = int(input())
S = [s for s in input().split()]

if len(set(S)) == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
_=input()
a=print('Four' if any([True if s=='Y' else False for s in input().split()]) else 'Three')

Solution (Python):
def solve(string):
    n, *s = string.split()
    return "Three" if len(set(s)) == 3 else "Four"


if __name__ == '__main__':
    print(solve('\n'.join([input(), input()])))

Solution (Python):
n=input();print("TFhoruere"[4<len(set(input()))::2])

Solution (Python):
n=int(input())
s=list(input())
if 'Y' in s:
  print("Four")
else:
  print("Three")

Solution (Python):
N = int(input())
Ss = input().split()

ans = "Three" if len(set(Ss)) == 3 else "Four"

print(ans)

Solution (Python):
N = int(input())
S = input()
if "Y" in S:
    print("Four")
else:
    print("Three")

Solution (Python):
N = int(input())
S = input().split()
print('Four' if 'Y' in S else 'Three')

Solution (Python):
_ = int(input())
if len(set(input().split())) == 3:
    print('Three')
else:
    print('Four')

Solution (Python):
input()
print('Four' if len(set(input().split())) == 4 else 'Three')

Solution (Python):
N=int(input())
print('Four') if len(list(set(list(map(str,input().split(' '))))))==4 else print('Three')

Solution (Python):
n = int(input())
print('Four' if 'Y' in set(input().split()) else 'Three')

Solution (Python):
input()
l=map(str,input().split())
print("Three" if len(set(l))==3 else "Four")

Solution (Python):
N = int(input())
S = input().split()
res = len(set(S))
print("Three" if res == 3 else "Four")

Solution (Python):
def main():
    N = int(input())
    c = {3: 'Three', 4: 'Four'}
    print(c[len(set(input().split()))])


main()

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

Solution (Python):
n = int(input())
s = list(map(str,input().split()))


y_n = s.count('Y')

if y_n == 0:
	print('Three')  
else:
	print('Four')

Solution (Python):
import collections

n = int(input())
a = list(input().split())

l = collections.Counter()

for i in a:
  l[i] += 1
print("Three" if len(l) == 3 else "Four")

Solution (Python):
n = int(input())
l = set(input().split())

if len(l) == 4:
    print("Four")
if len(l) == 3:
    print("Three")

Solution (Python):
N = int(input())
S = set(input().split())
if len(S) == 3:
    print('Three')
else:
    print('Four')

Solution (Python):
n = int(input())
s = set(list(input().split()))
print('Three' if len(s) == 3 else 'Four')

Solution (Python):
def hina_arare(N: int, S: list) -> str:
    return 'Four' if 'Y' in S else 'Three'


if __name__ == "__main__":
    N = int(input())
    S = input()
    ans = hina_arare(N, S)
    print(ans)

Solution (Python):
n=int(input())
if len(set(input().split()))==3:
    print("Three")
else:
    print("Four")

Solution (Python):
N = int(input())
S = set(input().split())
print(['Three','Four'][len(S)-3])

Solution (Python):
n = int(input())
s = input()

if s.count("Y") > 0:
    print("Four")
else:
    print("Three")

Solution (Python):
n=int(input())
hoge=list(map(str,input().split()))

if(hoge.count("Y")==0):
  print("Three")
else:
  print("Four")

Solution (Python):
N = int(input())
l = list(input().split())

if "Y" in l:
  print("Four")
else:
  print("Three")

Solution (Python):
if __name__ == "__main__":
    n = int(input())
    s = list(set(list(map(str,input().split()))))
    print("Four") if len(s) == 4 else print("Three")

Solution (Python):

import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
N = int(input())
S = input().split()[:-1]
ans = "Three" if len(set(S)) == 3 else "Four"
print(ans)

Solution (Python):
print("TFhoruere"['Y'in open(0).read()::2])

Solution (Python):
input()
print("Four" if "Y" in input() else "Three")

Solution (Python):
input()
s=list(input().split())
print("Three" if len(set(s)) == 3 else "Four")

Solution (Python):
n = int(input())
s = list(map(str, input().split()))
if 'Y' in s:
    print('Four')
else:
    print('Three')

Solution (Python):
N = int(input())
An = set(input().split())
if len(An)==3:
    print("Three")
else:
    print("Four")

Solution (Python):
N = int(input())
S = input().split()
if(len(set(S)) == 4):
  print("Four")
else:
  print("Three")

Solution (Python):
N = int(input())
 
S = list(map(str, input().split()))
 
color = [0, 0, 0, 0]
 
for s in S:
  if (color.count(0) == 0):
    print("Four")
    break
  
  if (s == "P"):
    color[0] += 1
  elif (s == "G"):
    color[1] += 1
  elif (s == "W"):
    color[2] += 1
  else:
    color[3] += 1
  
if (color.count(0) == 1):
  print("Three")

Solution (Python):
n = int(input())
x = list(input().split())

if len(set(x)) == 3:
  print('Three')
else:
  print('Four')

Solution (Python):
N=int(input())
S=input()
if "Y" in S:
  print("Four")
else:
  print("Three")

Solution (Python):
N = int(input())
S = input().split()
print("Four" if S.count("Y") else "Three")

Solution (Python):
N = int(input())
S = input().split()
S = set(S)
S = list(S)

if(len(S) == 3):
  print('Three')
else:
  print('Four')

Solution (Python):
n = int(input())
li = []
li = input().split()
li = set(li)
print("Four" if len(li) == 4 else "Three")

Solution (Python):
N = int(input())
S = input().split()
if "Y" in S:
    print("Four")
else:
    print("Three")

Solution (Python):
n = int(input())
a = list(map(str,input().split()))
print("Three" if len(set(a)) == 3 else "Four")

Solution (Python):
def main():
    N = int(input())
    S = input().split()
    four = False
    for s in S:
        if s == 'Y':
            four = True
    if four:
        print("Four")
    else:
        print("Three")


if __name__ == "__main__":
    main()

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    N = int(input())
    S = list(map(str, input().split()))

    if len(set(S)) == 3:
        print('Three')
    else:
        print('Four')
    


if __name__ == '__main__':
    main()

Solution (Python):
x = input()
lst = list(input().split())
if 'Y' in lst:
  print("Four")
else:
  print("Three")

Solution (Python):

_ = input()
S = set(input().split())
print(['Three', 'Four'][len(S) == 4])

Solution (Python):
N = int(input())
S = input().split()             

ans = "Three"

for s in S:   
    if s == "Y":
        ans = "Four"
        break
print(ans)

Solution (Python):
n = input()
s = list(map(str,input().split()))

for i in s:
    if i == 'Y':
        print('Four')
        quit()

print('Three')

Solution (Python):
n = int(input())
S = list(input().split())
cnt = [0, 0, 0, 0]
for i in range(n):
    if S[i] == "G":
        cnt[0] += 1
    elif S[i] == "W":
        cnt[1] += 1
    elif S[i] == "P":
        cnt[2] += 1
    else:
        cnt[3] += 1
if 0 in cnt:
    print("Three")
else:
    print("Four")

Solution (Python):
N = int(input())
S = input().split()
if all([i in S for i in ("P", "W", "G", "Y")]):
    print("Four")
else:
    print("Three")

Solution (Python):

n = int(input())
s = [str(s) for s in input().split()]
l = ['P', 'W', 'G', 'Y']
ans = 0
for c in l:
    if s.count(c) > 0:
        ans += 1
if ans == 4:
    print('Four')
else:
    print('Three')

Solution (Python):
N=int(input())
L=[i for i in input().split()]
A=True
for i in range(N):
  if L[i]=='Y':
    A=False
    break
if A:
  print('Three')
else:
  print('Four')

Solution (Python):

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

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

Solution (Python):
N = input()
A = [i for i in input().split()]

if "Y" in A:
    print("Four")
else:
    print("Three")

Solution (Python):
_ = input()
print(['Three', 'Four']['Y' in input()])

Solution (Python):
n = int(input())
s = list(input().split())
if len(set(s)) == 4:
    print('Four')
else:
    print('Three')

Solution (Python):
n = int(input())
s = list(input().split())
if 'Y' in s:
    print('Four')
else:
    print('Three')

Solution (Python):
N=int(input())
s=input()
r='Y' in s
if r==True:
    print('Four')
else:
    print('Three')

Solution (Python):
n = int(input())
s = list(input().split())
print("Four") if len(set(s)) == 4 else print("Three")

Solution (Python):
import sys
n = int(input())
s = sys.stdin.readline().rstrip().split()
print('Three' if len(set(s)) == 3 else 'Four')

Solution (Python):
n = int(input())
S = list(input().split())

if "Y" in S :
    print("Four")
else :
    print("Three")

Solution (Python):

n = int(input())


Arare = input().split()


print ('Four' if Arare.count('Y') > 0 else 'Three' )

def another():
    is_four = False
    for ai in Arare:
        if ai == 'Y':
            is_four = True
            break

    print( 'Four' if is_four else 'Three')

Solution (Python):
n=int(input())
a=set(list(input().split()))
if len(a)==3:
    print("Three")
else:
    print("Four")

Solution (Python):
n=int(input())
A=list(map(str,input().split()))
   
if len(set(A))==3:
    print('Three')
else:
    print('Four')

Solution (Python):
input();print("TFhoruere"[len(set(input().split()))-3::2])

Solution (Python):
N=int(input())
Colors=list(map(str,input().split()))
dict={}

for c in Colors:
  dict[c]=1

ans=0
for d in dict:
  ans+=1
  
print('Three' if ans==3 else 'Four')

Solution (Python):
input()

print('Three' if len(set(input().split())) == 3 else 'Four')

Solution (Python):
n = int(input())
list = list(map(str, input().split()))

if "Y" in list:
    print("Four")
else:
    print("Three")

Solution (Python):
num = int(input())
colors = map(str, input().split())

if len(set(colors)) == 3:
    print('Three')
else:
    print('Four')

Solution (Python):
input()
print('Four' if len(set(input().split())) == 4 else 'Three')

Solution (Python):
n=int(input())
ss = input().split()
print('Four' if len(list(set(ss)))==4 else 'Three')

Solution (Python):
N = int( input() )
S = list( input().split() )

def HinaArare( S ):
    for Si in S:
        if Si == 'Y':
            print( 'Four' )
            return
    print( 'Three' )

HinaArare( S )

Solution (Python):
N = int(input())
S = list(set(input().split()))
if(len(S) == 4):
  print("Four")
else:
  print("Three")

Solution (Python):
n=int(input())
s=list(input().split())
if len(set(s))==3:
    print('Three')
else:
    print('Four')

Solution (Python):
int_n = int(input())

arare_array = input().split()

if len(set(arare_array)) == 4:
    print("Four")
else:
    print("Three")

Solution (Python):
n = int(input())
s = list(input().split())
ans = 'Three'
for s_ in s:
    if s_=='Y':
        ans = 'Four'
print(ans)

Solution (Python):
N = int(input())
S = set(map(str, input().split()))

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

Solution (Python):
_ = input()
li = list(input().split())
if ('Y' in li):
    print("Four")
else:
    print("Three")

Solution (Python):
N=int(input())
s=[i for i in input().split()]
if "Y" in s:
    print("Four")
else:
    print("Three")

Solution (Python):
n = input()
if len(set(input().split())) == 3:
	print("Three")
else:
	print("Four")

Solution (Python):
n = int(input())
s = input().split()
if "Y" in s:
  print("Four")
else:
  print("Three")

Solution (Python):
""" AtCoder """

N = int(input())
S = list(input().split())

l = set()

for i in range(N):
    l.add(S[i])

if len(l) == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
from statistics import mean, median,variance,stdev
import sys
import math
import fractions

def j(q):
    if q==1: print("Three")
    else:print("Four")
    exit(0)


def ct(x,y):
    if (x>y):print("")
    elif (x<y): print("")
    else: print("")

def ip():
    return int(input())




n = ip()                              





a = input().split()                          



b = len(set(a))
if b==3: j(1)
j(0)

Solution (Python):
n=input()
lst=list(map(str,input().split()))
for i in lst:
    if i == 'Y':
        print('Four')
        exit()
print('Three')

Solution (Python):
n = int(input())
s = list(map(str,input().split()))
if "Y" in s:
    print("Four")
else:
    print("Three")

Solution (Python):
print('TFhoruere'['Y'in open(0).read()::2])

Solution (Python):
print('TFhoruere'['Y'in open(0).read()::2])

Solution (Python):
input();print('TFhoruere'[len(set(input()))>4::2])

Solution (Python):
input();print('TFhoruere'[len(set(input()))>4::2])

Solution (Python):
input()
if len(set(input().split())) == 3: print('Three')
else: print('Four')

Solution (Python):
n = int(input())
s = list(map(str,input().split()))
msg = 0
for i in range(n):
    if s[i]=='Y':
        msg = 'Four'
        break
    else:
        msg = 'Three'
print(msg)

Solution (Python):
N = int(input())
S = input().split()

if len(set(S)) == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
n=input()
print(['Three','Four'][len(set(list(map(str, input().split()))))==4])

Solution (Python):
n=int(input())
S=list(map(str,input().split()))
if len(set(S))==3:
    print('Three')
else:
    print('Four')

Solution (Python):
N = int(input())
S_x = input().split()
S = []
for i in range(N):
    S.append(S_x[i])
ans_p = 0
ans_y = 0
ans_w = 0
ans_g = 0
for char in S:
    if char == "P":
        ans_p = 1
    elif char == "Y":
        ans_y = 1
    elif char == "W":
        ans_w = 1
    elif char == "G":
        ans_g = 1
ans = ans_p + ans_y + ans_g + ans_w

if ans == 3:
    print("Three")
elif ans == 4:
    print("Four")

Solution (Python):
n = int(input())
list = input().split()
if 'Y' in list:
  print("Four")
else :
  print("Three")

Solution (Python):
N = int(input())
S = list(set(input().split()))
if(len(S) == 4):
  print("Four")
else:
  print("Three")

Solution (Python):
N  = int(input())
S = list(map(str,input().split()))

S = list(set(S))

if "Y" in S:
    print("Four")
else :
    print("Three")

Solution (Python):
N=int(input())
s=list(map(str,input().split()))
print('Three' if s.count('Y')==0 else 'Four')

Solution (Python):
n=input();print(['Three','Four'][len(set(input().split()))-3])

Solution (Python):
N=int(input())
s = list(map(str,input().split()))
print("Four" if "Y"in s else "Three")

Solution (Python):
input()
print('Four' if 'Y' in input().split() else 'Three')

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

Solution (Python):
n = int(input())
m = set(map(str,input().split()))
if len(m) == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
input()
print(["Three", "Four"]["Y" in input()])

Solution (Python):

def getInt(): return int(input())
def getIntList(): return [int(x) for x in input().split()]
def db(x): 
    global debug
    if debug: print(x)
debug = False
N = getInt()
S = [x for x in input().split()]
s = set(S)
if len(s)==3: print('Three')
else: print('Four')

Solution (Python):
N = int(input())
L = list(input().split())
if 'Y' in L:
  print("Four")
else:
  print("Three")

Solution (Python):
n = int(input())
Arare = input().split(" ")

p = Arare.count("P")
w = Arare.count("W")
g = Arare.count("G")
y = Arare.count("Y")

if p*w*g*y == 0:
    print("Three")
else:
    print("Four")

Solution (Python):


n = int(input())
s = [str(i) for i in input().split()]
s_ = set(s)
if "Y" in s:
    answer = "Four"
else:
    answer = "Three"

print(answer)

Solution (Python):
def main():
    n = int(input())
    s = input().split()

    if "Y" in s:
        print("Four")
    else:
        print("Three")


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
s = list(input().split())

if "Y" in s:
  print("Four")
else:
  print("Three")

Solution (Python):
n = input()
s = set(list(map(str,input().split())))
if len(s) == 3:
  print("Three")
else:
  print("Four")

Solution (Python):
n = int(input())
A = [i for i in input().split()]
ans = 'Three'
for i in range(n):
    if A[i] == 'Y':
        ans = 'Four'
        break
print(ans)

Solution (Python):
N = int(input())
S = input().split()
print("Four" if S.count("Y")>0 else "Three")

Solution (Python):
n = int(input())
s = input().split()
if "Y" in s:
    print("Four")
else:
    print("Three")

Solution (Python):
n = int(input())
s = input().split()

ans = 'Three' if len(set(s)) == 3 else 'Four'
print(ans)

Solution (Python):
n=int(input())
s=set(input().split())
print("{}".format("Four" if len(s) == 4 else "Three"))

Solution (Python):
N=int(input())
S=input().split()
if 'Y' in S:
  print('Four')
else:
  print('Three')

Solution (Python):
import collections
s = int(input())
a = list(input().split())
c = collections.Counter(a)

if len(c) == 4:
    print('Four')
else:
    print('Three')

Solution (Python):
N=int(input())
S=input().split()

S=list(set(S))

if len(S)==3:
    print('Three')
    exit(0)
else:
    print('Four')
    exit(0)

Solution (Python):
import sys
N = int(input())
S = [0]*N

s = set([n for n in input().split()])

if(len(s) == 3):
    print("Three")
else:
    print("Four")

Solution (Python):
n=input()
print("Three"if len(set(list(input().split())))!=4else"Four")

Solution (Python):
n = int(input())
arr = set(input().split())
print("Three" if len(arr) == 3 else "Four")

Solution (Python):


def main():
    N = int(input())
    S = input()

    print('Four' if 'Y' in S else 'Three')


if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
S = list(map(str,input().split()))
count = 0
if "G" in S:
    count+=1
if "W" in S:
    count+=1
if "Y" in S:
    count+=1
if "P" in S:
    count+=1
if count == 3:
    print("Three")
elif count == 4:
    print("Four")

Solution (Python):
N = int(input())
S = input().split()

ans = "Three"
for s in S:
    if s == "Y":
        ans = "Four"

print(ans)

Solution (Python):
N = int(input())
S = list(map(str, input().split()))
if 'Y' in S:
    print('Four')
else:
    print('Three')

Solution (Python):
n = int(input())
s = list(input().split())
if any(i == "Y" for i in s):
  print("Four")
else:
  print("Three")

Solution (Python):
a=int(input())

b=[i for i in input().split()]

c=len(set(b))

if c==4:
	print("Four")
else:
	print("Three")

Solution (Python):
input()
print("Four" if "Y" in input() else "Three")

Solution (Python):
input()
print("Three" if len(set(input().split()))==3 else "Four")

Solution (Python):
input()
print("Three" if len(set(map(str,input().split())))==3 else "Four")

Solution (Python):
n=input()
s=list(input().split())
s=set(s)
if len(s)==3:
  print("Three")
else:
  print("Four")

Solution (Python):
n = input()
l = list(input().split())
if ('Y' in l):
  print('Four')
else:
  print('Three')

Solution (Python):
n = int(input())
l = input().rstrip().split()
d = {}
for c in l:
    d[c] = True

if d.get('Y', False):
    print('Four')
else:
    print('Three')

Solution (Python):
N = int(input())
S = list(set(input().split()))
s = len(S)
if(s == 3):
  print('Three')
else:
  print('Four')

Solution (Python):
n = int(input())
s = list(input().split())
str = "PWGY"
for i in range(n):
    if s[i] in str:
        str = str.replace(s[i],"")
        if len(str)==0:
            break
if len(str)==0:
    print("Four")
else:
    print("Three")

Solution (Python):
n = int(input())
s = list(input().split())
print("Four" if "Y" in s else "Three")

Solution (Python):
n = int(input())
list = input().split()
for v in list:
    if v == 'Y':
        print("Four")
        exit()
print("Three")

Solution (Python):
n = int(input())
s = input().split(" ")
s = sorted(s)
list = [0] * 26
for i in range(n):
    list[ord(s[i])-97] += 1
ans = []
for i in range(len(list)):
    if list[i] != 0:
        ans.append(list[i])
if len(ans) == 3:
    print("Three")
elif len(ans) == 4:
    print("Four")

Solution (Python):

import sys
input = sys.stdin.readline

_ = input()
s = input()
print("Four" if "Y" in s else "Three")

Solution (Python):


import sys
input = sys.stdin.readline

N = int(input())
val = len(set(input().split()))
print("Three" if val == 3 else "Four")

Solution (Python):
N = int(input())
S = list(input().split())
if 'Y' in S:
    print('Four')
else:
    print('Three')

Solution (Python):
n=int(input());print("TFhoruere"[len(set(list(input().split())))==4::2])

Solution (Python):
N = int(input())

S= input().split()

if('Y' in S):
    print("Four")
else:
    print("Three")

Solution (Python):
n = int(input())
k = list(map(str, input().split()))
p = set(k)
if len(p) == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
N = int(input())
S = list(input().split())
flag = 0
for i in range(N):
    if S[i] == "Y":
        flag = 1
if flag == 1:
    print("Four")
else:
    print("Three")

Solution (Python):



def main():
    """Function."""
    n = int(input())
    s = list(map(str, input().split()))

    check = set()
    for i in range(n):
        check.add(s[i])

    if len(check) == 3:
        print("Three")
    else:
        print("Four")


if __name__ == "__main__":
    main()

Solution (Python):
i=input;i();print('TFhoruere'['Y'in i()::2])

Solution (Python):
N = int(input())
S = input().split()
print('Three' if len(set(S))==3 else 'Four')

Solution (Python):
n = int(input())
s = set(input().split())
if len(s) == 3: print('Three')
else: print('Four')

Solution (Python):
def main():
    n = int(input())
    ss = input().split()
    if 'Y' in set(ss):
        print('Four')
    else:
        print('Three')


if __name__ == '__main__':
    main()

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

Solution (Python):
n = int(input())
s = list(map(str, input().split()))
if len(set(s)) == 3:
    print('Three')
else:
    print('Four')

Solution (Python):
n=int(input())
s=[j for j in input().split()]
s.sort()
s=set(s)
s=list(s)
print('Three' if len(s)==3 else 'Four')

Solution (Python):
N=int(input())
S=input().strip().split(" ")

S=set(S)

if(len(S)==3):
   print("Three")
elif(len(S)==4):
    print("Four")

Solution (Python):
N = int(input())
arare = [s for s in input().split()]
if (arare.count("Y") > 0) :
    print("Four")
else :
    print("Three")

Solution (Python):
n = int(input())
s = input().split()

if "Y" in s:
    print("Four")
else:
    print("Three")

Solution (Python):
N=int(input())
S = list(set(input().strip().split(' ')))
if len(S)==4:
    print("Four")
else:
    print("Three")

Solution (Python):
n=int(input())
s=input().split()

flag=0
for i in range(n):
  if s[i]=='Y':
    flag=1
if flag==1:
  print('Four')
else:
  print('Three')

Solution (Python):

input()
print('Four' if 'Y' in list(input().split()) else 'Three')

Solution (Python):

input()
s = list(input().split())
for i in s:
    if i == 'Y':
        exit(print('Four'))
print('Three')

Solution (Python):
import re
n = int(input())
if re.search('Y', input()):
  print('Four')
else:
  print('Three')

Solution (Python):
a = int(input())
ar = input().split(" ")
if "Y" in ar:
  print("Four")
else:
  print("Three")

Solution (Python):
n = input()
l = list(map(str, input().split()))
if l.count('Y') > 0:
  print('Four')
else:
  print('Three')

Solution (Python):
n = int(input())
S = list(input().split())

S = set(S)

if len(S) == 3:
  print("Three")
else:
  print("Four")

Solution (Python):
N = int(input())
arare_list = list(input().split())
count = 0

for i in arare_list:
    if i == 'Y':
        count = 1

if count == 1:
    print('Four')
else:
    print('Three')

Solution (Python):
N = int(input())
S = [_ for _ in input().split()]

if "Y" in S:
    print("Four")
else:
    print("Three")

Solution (Python):
n=int(input())
al=list(input().split())
if 'Y' in al: 
    print('Four')
else:
    print('Three')

Solution (Python):
n = int(input())
S = list(input().split())
c = "Three"
for i in range(n):
	if S[i] == "Y":
		c = "Four"

print(c)

Solution (Python):
N = input()
a = list(input().split())
Y = 0
for i in a:
    if i == "Y":
        Y += 1
if Y >= 1:
    print("Four")
else:
    print("Three")

Solution (Python):
n = int(input())
S = list(input().split())
ans = "Three"
for i in range(n):
  if S[i] == "Y":
    ans = "Four"
print(ans)

Solution (Python):
N = input()
S = raw_input().split()
if len(set(S)) == 4:
	print "Four"
else:
	print "Three"

Solution (Python):
N = int(input())
S = set(input().split())
print("Three" if len(S)==3 else "Four")

Solution (Python):
n = int(input())
s = list(input().split())
if "Y" in s:
    print("Four")
else:
    print("Three")

Solution (Python):
input()
if 'Y' in input():
    print('Four')
else:
    print('Three')

Solution (Python):
N = int(input())
grains = input().split(" ")
is_y_in = False

for arare in grains:
    if arare == "Y":
        is_y_in = True

print("Four" if is_y_in else "Three")

Solution (Python):
def abc089_b():
    n = int(input())
    s = [str(i) for i in input().split()]

    return "Three" if len(set(s)) == 3 else "Four" if len(set(s)) == 4 else "ERROR"


if __name__ == '__main__':
    print(abc089_b())

Solution (Python):
def abc089_b():
    n = int(input())
    s = [str(i) for i in input().split()]

    return "Three" if len(set(s)) == 3 else "Four"


if __name__ == '__main__':
    print(abc089_b())

Solution (Python):
import collections
n = int(input())
a = input().split()

b = collections.Counter(a)

if len(b.values())==3:
    print("Three")
elif len(b.values())==4:
    print("Four")

Solution (Python):
a = int(input())
b = input().split()
c = list(set(b))

if len(c) == 4:
  print("Four")
else:
  print("Three")

Solution (Python):
n = int(input())
a = input().split()
a = [str(m) for m in a]

for i in a:
    if i == "Y":
        print("Four")
        exit()

print("Three")

Solution (Python):
import sys
n=int(input())
s=input()
for i in range(n):
  if(s[i]=="Y"):
    print("Four")
    sys.exit()
print("Three")