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):
x = int(input())
a = 0
lst = list(input().split(' '))
sst = []
for i in range(x):
    if lst[i] not in sst:
        sst.append(lst[i])
        a+=1
print("Three" if a == 3 else "Four")

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

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

Solution (Python):
n=int(input())
*s,=map(str,input().split())
if len(set(s))==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):
n = int(input())
s = list(input().split())
s_s = set(s)
if len(s_s)==4:
    print('Four')
else:
    print('Three')

Solution (Python):
from sys import stdin


def main() -> None:
    n = int(input())
    dic = set()

    for i in range(n):
        s = next_str()
        dic.add(s)

    print(["Three", "Four"][len(dic) == 4])


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin


def main() -> None:
    n = int(input())
    dic = set()

    for i in range(n):
        s = next_str()
        dic.add(s)

    print(["Three", "Four"][int(len(dic) == 4)])


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Solution (Python):
n=int(input())
L=list(input().split())
res="Three"

for i in range(n):
    if L[i]=="Y":
        res="Four"
        break

print(res)

Solution (Python):
N = int(input())
S = list(map(str,input().split()))
S = list(set(S))
p = S.count("P")
w = S.count("W")
g = S.count("G")
y = S.count("Y")
ans = p+w+g+y
if ans == 3 :
    print("Three")
else :
    print("Four")

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

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

Solution (Python):
import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

n = ni()
w = ns()
y = w.count("Y")

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

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

Solution (Python):


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

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

Solution (Python):
N = int(input())
S = {s for s in input().split() }
print("Three" if len(S) == 3 else "Four")

Solution (Python):

import collections
N = int(input())
S = input().split()
c = collections.Counter(S)
if c['Y']>0:
    print('Four')
else:
    print('Three')

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

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

Solution (Python):

n = int(input())
nl = [ _ for _ in input().split()]

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

Solution (Python):
N = int(input())
S_list = list(map(str, input().split( )))
import collections
S_dict = collections.Counter(S_list)
S_val, S_count=zip(*S_dict.most_common())
ans_number = len(S_val)
ans = 'Three'
if ans_number == 4:
  ans = 'Four'
print(ans)

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

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

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

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

print('Three' if 'Y' not in arare else 'Four')

Solution (Python):
n = int(input())
print(["Three","Four"][len(set(input().split()))> 3])

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

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

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

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

print({3: "Three", 4: "Four"}[len(set(s))])

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

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

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

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

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

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

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

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

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

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

Solution (Python):
input()
sl = [i for i in input().split()]
print(["Three", "Four"][len(set(sl)) == 4])

Solution (Python):
n = int(input())
sl = [i for i in input().split()]
print(["Three", "Four"][len(set(sl)) == 4])

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

a = 'Three'
for _ in(s):
    if _ == 'Y':
        a = 'Four'
print(a)

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())
a = list(input())
for i in range(n):
  if a[i] == "Y":
    print("Four")
    exit()
    
print("Three")

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

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

ans='Three'
for x in input().split():
    if x == 'Y':
        ans='Four'
        break
print(ans)

Solution (Python):
n = int(input())
s = input().split()
for color in s:
    if (color == 'Y'):
        print('Four')
        import sys
        sys.exit()
print('Three')

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

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

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

Solution (Python):
n = int(input())
list_s = list((map(str, input().split())))
if "Y" in list_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()
for i in range(n):
  if s[i] == "Y":
    print("Four")
    exit()
print("Three")

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

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

dic = {}
for s in S:
    dic[s] = 1
if len(dic) == 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(input())
s = input().split()
if len(set(s)) == 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()

for si in s:
  if si == "Y":
    print("Four")
    break
else:
  print("Three")

Solution (Python):
N = int(input())
L = list(map(str,input().split()))
flag = 4
if "P" in L :
    flag -= 1
if "W" in L :
    flag -= 1
if "G" in L :
    flag -= 1
if "Y" in L :
    flag -= 1
if flag == 0 :
    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())
listS = input().split()

index=0
flagY =0
while index<n:
    if listS[index] == "Y":
        flagY =1
        break
    else:
        index+=1

if flagY ==1:
    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())
A = list(input().split())
L = set(A)
if (len(L) == 3):
  print('Three')
else:
  print('Four')

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

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

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

print(ans)

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


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

Solution (Python):
input()
print("Four" if len(list(set(input().split())))==4 else "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()
ans='Three'
for i in range(N):
    if S[i]=='Y':
        ans='Four'
print(ans)

Solution (Python):
anslist = ['Three', 'Four']
N = int(raw_input())
S = raw_input().split()
ans = 0
if 'Y' in S: ans = 1
print anslist[ans]

Solution (Python):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())

N = int(input())
S = inpl_s()
hoge = set()
for s in S:
	hoge.add(s)

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

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

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

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

Solution (Python):
N = int(input())
s_list =  "".join(input().split())

s_list = s_list.replace("G", "").replace("P", "").replace("W", "")
if len(s_list) == 0 :
    print("Three")
else:
    print("Four")

Solution (Python):

n=int(input())
a=list(set(input()))
print('Three' if len(a)==4 else 'Four')

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

Solution (Python):
N = int(input())
S = []
hantei = False

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

for i in range(N):
    if S[i] == "Y":
        hantei = True
        break

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

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

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

A = input()

if 'Y' in A:
  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
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


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

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

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
n=int(input())
l=set([i for i in input().split()])
print(["Three","Four"][len(l)==4])

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

colour = []
for i in range(N):
    if s[i] not in colour:
        colour.append(s[i])
        
if len(colour) == 3:
    print("Three")
elif len(colour) == 4:
    print("Four")

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

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

res = "Three"
for c in s:
    if c == 'Y':
        res = "Four"
        break
print(res)

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

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

a = ("Four" if "Y" in li else "Three")
print(a)

Solution (Python):
input();print("Four"if len(set(input().split()))>3 else"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=set(input().split())
if len(s)==3:
  print("Three")
elif len(s)==4:
  print("Four")

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

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

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

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

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

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

print({3: "Three", 4: "Four"}[len(set(s))])

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

COUNT = S.count("Y")

if COUNT > 0:
  print("Four")
else:
  print("Three")

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

Solution (Python):
n = int(input())
s = input().split()
print('Four' if ('Y' in s) else '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=int(input())
S=list(map(str,input().split()))
bucket=[0*i for i in range(4)]
for i in range(N):
    if S[i]=='P':
        bucket[0]+=1
    elif S[i]=='W':
        bucket[1]+=1
    elif S[i]=='G':
        bucket[2]+=1
    else:
        bucket[3]+=1
if 4 - bucket.count(0)==3:
    print('Three')
else:
    print('Four')

Solution (Python):


def main():
    n = int(input())

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

if __name__ == '__main__':
    main()

Solution (Python):
N=int(input())
s=set(input())
print("Four" if len(s)==5 else "Three")

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

Solution (Python):
N = int(input())
if len(set(input().rstrip().split())) ==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(raw_input())
print "Three" if len(set(raw_input().split())) == 3 else "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(input().split())
y = 0
for i in range(N):
	if S[i] == "Y":
		y = 1
if y == 0:
	print("Three")
else:
	print("Four")

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

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

Solution (Python):
"""
https://abc089.contest.atcoder.jp/tasks/abc089_b
"""
n=int(input())
s=[i for i in input().split()]
a=1
for i in s:
    if i=="Y":
        a=a*0
    else:
        a=a*1

if a==0:
    print("Four")
else:
    print("Three")

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

Solution (Python):
N = int(input())
S = set(input())
S.remove(' ')
if len(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):
N = int(input())
a = set(input().split())
if len(a) == 4:
    print("Four")
elif len(a) == 3:
    print("Three")

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

Solution (Python):
n = int(input())
type = len(set([ i for i in input().split()]))
print(["Three","Four"][type>=4])

Solution (Python):
n=int(input())
line=input().split(" ")
colors=[0,0,0,0]
s=0
for i in range(n):
	if line[i]=="G":
		colors[0]=1
	if line[i]=="W":
		colors[1]=1
	if line[i]=="P":
		colors[2]=1
	if line[i]=="Y":
		colors[3]=1
s=sum(colors)
if s==3:
	print ("Three")
else:
	print("Four")

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

Solution (Python):
x=int(input())
y=[str(x) for x in str(input()).split()]
count=0
for i in y:
  if i=="Y":
    count=1

if count==1:
  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()
if "Y" in s:
    print("Four")
else:
    print("Three")

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

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

Solution (Python):
n =int(input())
s = 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]=='Y':cnt[2]+=1
    else: cnt[3]+=1
print("Three" if min(cnt)==0 else "Four")

Solution (Python):
N=int(raw_input())
S=raw_input().split()
from collections import Counter
st = Counter(S)
if len(st) == 4:
  print 'Four'
else:
  print 'Three'

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

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

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

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

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

Solution (Python):

"""
Created on Wed Jun 13 17:57:26 2018


文字列に[Y]が入っていたら[Four]を出力
そうではなければ [Three]を出力


入力
6
G W Y P Y W

出力
Four


@author: Yuya
"""

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):
N = int(input())
s = input().split()
if 'Y' in s:
    print("Four")
else:
    print("Three")

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

for i in range(N):
    if S[i] == 'Y':
        result = 'Four'
        break
        
print(result)

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

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

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

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

Solution (Python):
zenbu = int(input())
mame = [i for i in input().split()]

kiiro = 0

for moji in mame:
    if moji == 'Y':
       kiiro = 1
       break

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

Solution (Python):
zenbu = int(input())
mame = [i for i in input().split()]

kiiro = 0

for mame_1 in mame:
    if mame_1 == 'Y':
           kiiro = 1
           break

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

Solution (Python):

arare_kazu = int(input())
arare_color = [i for i in input().split()]



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

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

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

flgYel = 0

for cnt in range(num):
    if InA[cnt] == "Y":
        flgYel = 1
        break

if flgYel > 0 :
    print ("Four")
else :
    print ("Three")

Solution (Python):
n = int(input())
s = list(input().split())
print(('Three','Four')['Y' in s])

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


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

Solution (Python):
N=int(input())
n = list(map(str, input().split()))
listemp=[]
for i in n:
    if i not in listemp:
        listemp.append(i)

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

Solution (Python):
N = int(input())
S = [i for i in input().split()]
S_uniq = list(set(S))
if len(S_uniq) == 3:
    print('Three')
elif len(S_uniq) == 4:
    print('Four')

Solution (Python):


N = int(input())
hnarrs = input()

if hnarrs.find("Y") == -1:
    print("Three")
else:
    print("Four")

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

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


def hina_arare(colors):
    for color in colors:
        if color == "Y":
            return "Four"
    return "Three"


print(hina_arare(colors))

Solution (Python):
while True:
    N = int(input())
    if N < 1 or N >100:
        continue
    b = input().split()
    a = [i for i in b]
    if 'P' and 'W' and 'G' and 'Y' in a :
        print('Four')
        break
    else:
        print('Three')
        break

Solution (Python):



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


 
i=0
for i in range(N):
    if(S[i]=='P'):
        T[0] = 1
    if(S[i]=='W'):
        T[1] = 1
    if(S[i]=='G'):
        T[2] = 1
    if(S[i]=='Y'):
        T[3] = 1

Sum = 0
i=0
for i in range(4):
    Sum = Sum + T[i]
    
if(Sum == 3):
    print("Three")
if(Sum == 4):
    print("Four")

Solution (Python):
N = int(input())
print("Four" if "Y" in list(s for s in input().split()) else "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 = list(input().split())
 
if 'Y' in S:
    print('Four')
else:
    print('Three')

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

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

Solution (Python):
n = int(input())
li = list(input().split())
di = {0:"One",1:"One",2:"Two",3:"Three",4:"Four"}
print(di[len(set(li))])

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

def main():
    ans = "Four" if "Y" in S else "Three"
    print(ans)

if __name__ == "__main__":
    main()

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(' ')
if 'Y' in S:
    print('Four')
else:
    print('Three')

Solution (Python):
colors = list("PWGY")
dict = {}
for c in colors:
    dict[c] = False
N = int(input())
for x in input().split():
    dict[x] = True
ans = 0
for c in colors:
    ans += 1 if dict[c] else 0
if ans == 3:
    print("Three")
else:
    print("Four")

Solution (Python):
n = int(raw_input())
s = raw_input().split()
if s.count('Y') > 0:
  print "Four"
else:
  print "Three"

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


si = [print('Four')if 'Y' in s else print('Three') ]

Solution (Python):
n = int(input())
s = [i for i in input().split()]
four = ['G', 'W', 'Y' ,'P']
for i in four:
    if i in s:
        continue
    else:
        print("Three")
        exit()
print("Four")

Solution (Python):
n = int(input())
s = [str(x) for x in input().split()]
if len(set(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):
input()
seq = input().split(' ')

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

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

Solution (Python):
n = int(input())
if(input().find("Y") != -1):
    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())
A=input().split()
if 'Y' in A:
    print('Four')
else:
    print('Three')

Solution (Python):
N=int(input())
S=input().split()
print("Four"if "Y" in S else"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 = list(map(str, input().split()))
flag = False
for i in range(n):
    if s[i] == 'Y':
        flag = True
if flag:
    print('Four')
else:
    print('Three')

Solution (Python):

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

flag = False
for i in range(N):
	if arare[i] == 'Y':
		flag = True
		break
if flag:
	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 = input()
print("Four" if len(set(input()))==5 else "Three")

Solution (Python):
araresuu = int(input())
sikou = input().split()
kaisuu = 0

for i in sikou:
    if i == 'Y':
        print('Four')
        break
    kaisuu += 1

if kaisuu == araresuu:
    print('Three')

Solution (Python):
N=input()
A=set(input().split())

if len(A)==4:print("Four")
elif len(A)==3:print("Three")
elif len(A)==2:print("Two")
elif len(A)==1:print("One")
else: print("Ha?")

Solution (Python):
N=input()
print(["Four","Three"][len(set(list(map(str, input().split()))))==3])

Solution (Python):
N = int(input())
s = list(map(str, input().split()))
print(["Four", "Three"][len(set(s))==3])

Solution (Python):
N = int(input())
S = input().split()
count = 0
for i in S:
    if i == "Y":
        count += 1
if count != 0:
    print("Four")
else:
    print("Three")

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

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

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

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

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

flag = False

for i in range(N):
    if S[i] == "Y":
        flag = True

if flag == False:
    print("Three")
else:
    print("Four")

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

s = input().split()

for i in range(n):
    if s[i] == 'Y':
        print("Four")
        break
    elif i == n-1:
        print("Three")
        break

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

print("Four" if len(s) == 4 else "Three")

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


G =0
P =0
W =0
Y =0

for i in b:
    if i == 'G':
        G +=1
    elif i =='P':
        P +=1
    elif i =='W':
        W += 1
    else:
        Y += 1

if G != 0 and P != 0 and W != 0 and Y != 0:
    print('Four')
else:
    print('Three')

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

Color = input().split()

num = len(set(Color))

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

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

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

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

else:
    print("Three")

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

if rawS.find('Y') != -1:
    print('Four')
else:
    print('Three')

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

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

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

Solution (Python):
from collections import Counter
N = int(input())
A = input().split()

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

Solution (Python):
n=int(input())
p = input().split()
c = ["P","W","G","Y"]
k = [int(c[i] in p) for i in range(4)]
k = sum(k)
if k == 3:
  print("Three")
else:
  print("Four")

Solution (Python):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(10000)


def chkprint(*args):
    names = {id(v):k for k,v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))


def to_bin(x):
    return bin(x)[2:]



dp = None

def main():
    N = int(input())
    ArareList = list(input())

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

main()

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

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

Solution (Python):


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

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

color = [0 for i in range(4)]

for i in range(n):
    if s[i]=="Y":
        print("Four")
        exit()
print("Three")

Solution (Python):
n = int(input())
contents_str = input()
contents = contents_str.split()
solution = 'Three'
for color in contents:
    if color == 'Y':
        solution = 'Four'
        break
print(solution)

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