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(input())
lis = list(map(str,input().split()))
if "Y" in lis:
  print("Four")
else:
  print("Three")

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 = input().split()
flag = True
for i in range(N):
    if S[i] == "Y":
        flag = False
        break
if flag:
    print("Three")
else:
    print("Four")

Solution (Python):

n = int(input())
arare = input().split()
if ('Y' in arare) == True:
    print('Four')
else:
    print('Three')

Solution (Python):
import re
import sys

if __name__ == '__main__':
    N = int(input())
    li = raw_input().split()
    d = dict()
    for l in li:
        d[l] = 1
    if len(d) == 4:
        print 'Four'
    else:
        print 'Three'

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

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

if s.count('Y')<1:
    print("Three")
else:
     print("Four")

Solution (Python):
n = input()
arare = list(input().split())

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

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

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

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

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

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

hina = [S for S in input().split()]

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

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

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

ball_list = map(str, input().split())
type_num = len(list(set(ball_list)))

if type_num == 3:
    print('Three')
else:
    print('Four')

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

if 'Y' in sn:
    print('Four')
else:
    print('Three')

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

print("Three" if s.count('Y') == 0 else "Four")

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

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

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

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

Solution (Python):



import math
import re
import sys


def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result




arr_data = getinputdata()

n=int(arr_data[0][0])



if("Y" in arr_data[1]):
    
    print("Four")
    
else:
    
    print("Three")

Solution (Python):
N = int(input())
S = input().split()
dict = {}
for i in range(N):
    if(S[i] in dict):
        dict[S[i]] += 1
    else:
        dict[S[i]] = 1
if(len(dict) == 3):
    print("Three")
else:
    print("Four")

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

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

temp=0

for i in range(N):
    if S[i]=='Y':
        temp=1

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

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

yellow=0
for i in range(int(N)):
    if S[i]=='Y':
        yellow+=1
    else:
        continue

if yellow>=1:
    print('Four')
else:
    print('Three')

Solution (Python):
ips = []
ips.append(input())
while True:
    try:
        ips.append(input())
    except (EOFError):
        break
num = int(ips[0])
hina = ips[1].split(" ")
v = []
for i in range(num):
    if hina[i] not in v:
        v.append(hina[i])
if len(v) == 3:
    print("Three")
elif len(v) == 4:
    print("Four")

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

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

Solution (Python):




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

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

Solution (Python):
a = int(input())
x = set(i for i in input().split())
if len(x) == 3: print("Three")
else: print("Four")

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

s = set(S)
if len(s) == 3 and "Y" not in S:
    print("Three")
else:
    print("Four")

Solution (Python):
y = input()
x = input().split(" ")
t = True
for i in x:
    if i == 'Y':
        t = False
        continue

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

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

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

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

Solution (Python):
n = int(input())
l = list(input().split())
found = []

for c in l:
  if not c in found:
    found.append(c)

if len(found) == 3:
  print('Three')
elif len(found) == 4:
  print('Four')

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

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

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

s = set()

c = input()
a = c.split(' ')

for i in a:
    s.add(i)

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

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

Solution (Python):
n = int(input())
items = set(input().split())
results = {3: 'Three', 4: 'Four'}
if len(items) in results:
    print(results[len(items)])

Solution (Python):
a=int(input())
b=input()
if 'Y' in b:
    print("Four")
else:
    print("Three")

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

Solution (Python):
input();print(['Three','Four']['Y'in set(input().split())])

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

Solution (Python):


def solve(n, ss):
    return len(set(ss))

def main():
    n = int(input())
    ss = input().split(' ')
    ans = solve(n, ss)
    if ans == 3:
        print("Three")
    elif ans == 4:
        print("Four")

if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):


N = int(input())
x = list(map(str, input().split()))
res=[0,0,0,0]

def check(a):
    if a==[1,1,1,1]:
        print('Four')
        quit()


for i in range(0,N):
    if x[i]=='G':
        res[0]=1
    if x[i]=='Y':
        res[1]=1
    if x[i]=='W':
        res[2]=1
    if x[i]=='P':
        res[3]=1
    check(res)

print('Three')

quit()

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

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

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

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
INF = float("inf")
import sys
sys.setrecursionlimit(10000)


def solve(N, S):
    if "Y" in S:
        return "Four"
    else:
        return "Three"


def main():
    N = int(input())
    S = list(input().split())
    print(solve(N, S))


if __name__ == '__main__':
    main()

Solution (Python):
input();print(['Four','Three'][len(set(list(input().split())))-4])

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

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

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

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

count={}
for character in colors:
    count.setdefault(character,0)
    count[character]+=1
    
if len(count.keys())==3:
    print('Three')
else:
    print('Four')

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

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

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

    
    remove_overlap_S = list(set(S) )

    
    if(len(remove_overlap_S ) < 4):
        print("Three")
    else:
        print("Four")
    
if __name__=="__main__":
    main()

Solution (Python):
import sys

with sys.stdin as f:
    s_input = f.read()

    s_args = s_input.splitlines()
    n = int(s_args[0])
    s = s_args[1].split()

    if len(set(s)) >= 4:
        print("Four")
    else:
        print("Three")
        
sys.exit(0)

Solution (Python):
n = input()

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

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

Solution (Python):
import numpy as np

N = input()
inp = str(input())

I = list(inp)

l = set(I)

s = {'P','W','G','Y'}

if len(l & s) == 0:
    print('Zero')
elif len(l & s) == 1:
    print('One')
elif len(l & s) == 2:
    print('Two')
elif len(l & s) == 3:
    print('Three')
elif len(l & s) == 4:
    print('Four')

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

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

Solution (Python):
N=int(input())
ame=list(map(str,input().split()))
species =0
if 'Y' in ame:
    species += 1
if 'P' in ame:
    species +=1
if 'W' in ame:
    species += 1
if 'G' in ame:
    species += 1
if species ==3:
    print ('Three')
else:
    print('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(raw_input())
s=map(str,raw_input().split())
ss=set(s)
cnt=len(ss)
if cnt==3:
 print 'Three'
else:
 print 'Four'

Solution (Python):
x = int(input())
HINA = input().split()
ThreeOrFour = False
for i in range(x):
    if HINA[i] == "Y":
        ThreeOrFour = True
if ThreeOrFour == True:
    print("Four")
else:
    print("Three")

Solution (Python):
n = input()

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

Solution (Python):


N = input()

S = input().split()

if "Y" in S:
	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().split(" ")

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

else:
    print("Three")

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

for i in S:
    if i =='Y':
        print ("Four")
        k.append("n")
        break
if k == []:
    print("Three")

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

s_type_len = len(set(s))

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

Solution (Python):
n=int(input())
s=input().split()
a=[]
for i in s:
    if i in a:
        continue
    else:
        a.append(i)
c=0
for i in a:
    c+=1
if c==3:
    print("Three")
else:
    print("Four")

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

Solution (Python):
n = int(input())
color = set()
for c in input().split():
    color.add(c)

print('Three' if len(color) == 3 else 'Four')

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

Solution (Python):
n = input()
str = input().split()
dict = []
for s in str:
    if not s in dict:
        dict.append(s)
print("Three" if len(dict) == 3 else "Four")

Solution (Python):
N=input()
array=input().split()
temp=[]
c=0
for i in array:
    if (i in temp):
        continue
    else:
        temp.append(i)
        c+=1
if (c==3):
    print('Three')
elif(c==4):
    print('Four')
else:
    print('Other')

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

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

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

Solution (Python):
n, l = input(), raw_input().split()
print {3: 'Three', 4: 'Four'}[len(set(l))]

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

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

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

Solution (Python):

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

Solution (Python):
import math
import numpy as np
from operator import mul



















N = int(input())
S = list(input().split())
colors = [0,0]

for i in range(N):
    if S[i] == 'P' or S[i] == 'W' or S[i] == 'G':
        colors[0] += 1
    if S[i] == 'Y':
        colors[1] += 1

if colors[1] == 0:
    print('Three')
else:
    print('Four')

Solution (Python):
if __name__ == '__main__':
    N = int(input())
    S = set(input().split(' '))

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

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

Solution (Python):
input_number = int(input())
input_Hina = input().split()
a = 0
if input_Hina.count("G") > 0:
    a += 1
if input_Hina.count("W") > 0:
    a += 1
if input_Hina.count("Y") > 0:
    a += 1
if input_Hina.count("P") > 0:
    a += 1

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

Solution (Python):

n = int(input())
c = input().split()
for i in c:
    if i == "Y":
        print("Four")
        break
else:
    print("Three")

Solution (Python):
input()
print("Four"if len({i for i in input().split()})==4else"Three")

Solution (Python):
n = raw_input()
a = [i for i in raw_input().split()]
l = len(list(set(a)))
if l == 3:
  print("Three")
if l == 4:
  print("Four")

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

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

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

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

flagP = False
flagW = False
flagG = False
flagY = False

st = input().split()

for i in range(ipn):
	if st[i] == "P":
		flagP = True
	if st[i] == "W":
		flagW = True
	if st[i] == "G":
		flagG = True
	if st[i] == "Y":
		flagY = True

if flagP and flagW and flagG and flagY:
	print("Four")
else:
	print("Three")

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

Solution (Python):

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

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

Solution (Python):
def main():
    N = input()
    S = input().strip().split()

    if len(set(S)) == 3:
        return 'Three'
    else:
        return 'Four'
    
if __name__ == '__main__':
    print(main())

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

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

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

if sum([c in S for c in ('G', 'W', 'P', 'Y')]) == 3:
    print('Three')
else:
    print('Four')

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

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

else:
    print("Three")

Solution (Python):
def solve():
    N = int(input())
    S = list(input().split())
    for c in S:
        if c == "Y":
            print("Four")
            return
    print("Three")
    
solve()

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

line = raw_input()

p = 'Three'

for k in line:
    if k == 'Y':
        p = 'Four'
        break

print p

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

Solution (Python):



from collections import Counter

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

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

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

Solution (Python):
n = int(input())
t = 'Y'
x = input().split()
    
if(t in x):
  print('Four')
else:
  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())
A = set(input().split())
if len(A) == 3:
   print("Three")
else:
   print("Four")

Solution (Python):

N = int(input())
STR = input().split()

G = STR.count("G") >= 1
W = STR.count("W") >= 1
Y = STR.count("Y") >= 1
P = STR.count("P") >= 1
counter = G+W+Y+P

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

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

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

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

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

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

Solution (Python):
n = input()
s_list = input().split(' ')                                                                                                         

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

Solution (Python):
N = int(input())
S = set()
Arare = list(map(str,input().split()))
for s in Arare: 
	S.add(s)
T = set()
T.add("Y")
print("Four" if T.issubset(S) == True else "Three")

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

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

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

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

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

Solution (Python):
import sys



N=raw_input()
te=raw_input()

flaglist=[]
for i in range(len(te)):
    if te[i]=="P" or te[i]=="p":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="W" or te[i]=="w":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="G" or te[i]=="g":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="Y" or te[i]=="y":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
            
if len(flaglist)==3:
    print("Three")
elif len(flaglist)==4:
    print("Four")

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

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

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

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

Solution (Python):
N=int(input())
L=input()
if L.find('Y')>=0:
	print("Four")
else:
	print("Three")

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

S = input()

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

Solution (Python):
num=int(input())
color=input().split()
if color.count("Y")==0:
    print("Three")
else:
    print("Four")

Solution (Python):
pink = 0
green = 0
white = 0
yellow = 0

n = input()
l = raw_input().split()
 
for i in range(n):
   
    if(l[i] == 'P'):
        pink = 1

    if(l[i]== 'G'):
        green = 1

    if(l[i] == 'W'):
        white = 1

    if(l[i] == 'Y'):
        yellow = 1

if(pink + white + green + yellow) == 4:
    print u"Four"
else:
    print u"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()


editedArray = list(set(S))

count = len(editedArray)

if count == 3:
  print("Three")

if count == 4:
  print("Four")

Solution (Python):
n=int(input())
arare=input().split(' ')
a=0
for i in range(n):
    if arare[i]=='Y':
        a=1
        break
if a==0:
    print('Three')
else:
    print('Four')

Solution (Python):
from math import *

n = int(input())
s = input()
b = False
for x in range(len(s)):
  if s[x] is 'Y':
    b = True
    break
print('Four' if b else 'Three')

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

for i in range(N):
    if S[i]=='Y':
        num = +1
        break

if num>=1:
    print('Four')
else:
    print('Three')

Solution (Python):



import collections


def main():
    n = int(input())
    ctr = collections.Counter(input().split())
    print("Three" if len(ctr) == 3 else "Four")


if __name__ == '__main__':
    main()

Solution (Python):
if __name__ == '__main__':    
    arare_count = int(input())
    arares = list(map(str, input().split(" ")))

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

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

hlist = input().split()

cnt = 0

for i in range(n):
        if hlist[i] == "Y":
                cnt += 1
if cnt > 0:
        print ('Four')
else:
        print ('Three')

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

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

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

for s_ in s:
    if s_ == 'Y':
        print('Four')
        exit()
print('Three')

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

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

Solution (Python):

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


n = int(raw_input())
s = raw_input().split()
if is_four(s):
    print 'Four'
else:
    print 'Three'

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

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

Solution (Python):
from collections import Counter
N=int(input())
X=input().split()
counter = Counter(X)
count=0
for i in counter:
    count += 1
if count==3:
    print('Three')
if count==4:
    print('Four')

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

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

Solution (Python):
def main():
    N = input()
    data = input().split()
    ans = "Three"
    for i in data:
        if i == "Y":
            ans = "Four"
    print(ans)


if __name__ == '__main__':
    main()

Solution (Python):



N = input()
S = raw_input().split()
for i in range(N):
	if S[i] == 'Y':
		print('Four')
		N = -1
		break
if N > -1:
	print('Three')

Solution (Python):
N = int(input())
colors = input().split()
P = 0
W = 0
G = 0
Y = 0
for c in colors:
    if c == 'P':
        P = 1
    elif c == 'W':
        W = 1
    elif c == 'Y':
        Y = 1
    elif c == 'G':
        G = 1
if P + W + Y + G == 3:
    print('Three')
else:
    print('Four')

Solution (Python):


N = int(input())
arare = input().split()

check_p = 0
check_w = 0
check_g = 0
check_y = 0
for i in arare:
    if i == "P":
        check_p = 1
    elif i == "W":
        check_w = 1
    elif i == "G":
        check_g = 1
    else:
        check_y = 1

if check_p + check_w + check_g + check_y == 3:
    print("Three")
else:
    print("Four")

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

Solution (Python):
n = input()
s = input()
isFour = False
for c in s:
    if c == 'Y':
        print ('Four')
        isFour = True
        break

if not isFour:
    print ('Three')

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

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

Solution (Python):
N = int(input())
S_list = input().split(' ')

if 'Y' in S_list:
    print('Four')
else:
    print('Three')

Solution (Python):

a = int(input())

members = input().split()
a = []
count = 0

for member in members:
    if(member not in a):
        a.append(member)
        count += 1
if(count == 3):
    print("Three")
elif(count == 4):
    print("Four")

Solution (Python):
X = int(input())
lis = input().split(" ")


n = 0
G = 0
Y = 0
W = 0
P = 0
for n in range(len(lis)):
    if lis[n] == "G":
        G = 1
    if lis[n] == "Y":
        Y = 1
    if lis[n] == "W":
        W = 1
    if lis[n] == "P":
        P = 1
    n += 1

su = G + Y + W + P
if su == 3:
    print("Three")
else:
    print("Four")

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

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

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

ans = "Three"

if any(ss[i] == 'Y' for i in range(n)):
    ans = "Four"

print(ans)

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

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

Solution (Python):
nCount = 0
nP = 0
nW = 0
nG = 0
nY = 0

N = int(input())
nData = []
nData  = input().rstrip().split(' ')

for i in range(N):
    sTmp = nData[i]
    if sTmp == 'P':
        nP = 1
    elif sTmp == 'W':
        nW = 1
    elif sTmp == 'G':
        nG = 1
    elif sTmp == 'Y':
        nY = 1
    
nCount = nP + nW + nG + nY

if nCount == 3:
    print('Three')
else:
    print('Four')

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

temp = []
for i in range(N):
    if S[i] in temp:
        pass
    else:
        temp.append(S[i])
print('Three' if len(temp) == 3 else 'Four')

Solution (Python):
import numpy as np
import scipy as sp

N = int(input())
S = [a for a in input().split()]

a = set(S)

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

Solution (Python):
n=int(input())
a=list(map(str,input().split()))
f=True
for i in range(n):
  if a[i] == "Y":
    f=False
    print("Four")
    break
if f :
  print("Three")

Solution (Python):
N=int(raw_input())
list_S=raw_input().split()

if "Y" in list_S: print "Four"
else: print "Three"

Solution (Python):
n=int(input())
s=list(input().split())
s=set(s)
if len(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())
a = str(input()).split()
c = a.count('Y')
if c > 0:
    print('Four')
else:
    print('Three')

Solution (Python):
N = int(input())
flag = 0
ans = 0
A = input()
for i in range(N*2)[::2]:
	if A[i] == "G":
		flag |= 1
	if A[i] == "P":
		flag |= 1 << 1
	if A[i] == "W":
		flag |= 1 << 2
	if A[i] == "Y":
		flag |= 1 << 3

for i in range(4):
	if flag & 1 << i:
		ans+=1
if ans == 4:
	print("Four")
else:
	print("Three")

Solution (Python):
import collections
n = input()
ans = len(collections.Counter(input().replace(" ","")))
if ans == 4: print("Four")
else: print("Three")

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())
hina_list = input().split()
hina = set(hina_list)

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

Solution (Python):
N = int(input())
l = input().split()
ary = ['P', 'W', 'G', 'Y']
for i in l:
    for a in ary:
        if (i == a):
            ary.remove(i)
if len(ary) == 0:
    print('Four')
else:
    print('Three')

Solution (Python):
n = input()
arare = set(list(input().split()))


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

Solution (Python):
if __name__ == '__main__':
    n = input()
    arares = input().split()
    arare_kinds = set(arares)
    n_arare_kinds = len(arare_kinds)

    if n_arare_kinds == 3:
        print("Three")
    elif n_arare_kinds == 4:
        print("Four")
    else:
        exit(0)

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

if 'Y' in s:
    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):
def judge():
    for i in range(N):
        if color[i]=="Y":
            print("Four")
            break
    if color[i]!="Y":
        print("Three")

N=int(input())
color=[]*N
color=input().split()
judge()

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

def a(j):
    for i in j:
        if i == 'Y':
            return "Four"
    return "Three"

print(a(s))

Solution (Python):
def ACBC_089_B():
    _num = int(input())
    _colors = str(input())
    if _colors.find("Y") == -1:
        print("Three")
    else:
        print("Four")


ACBC_089_B()

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

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

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