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())
S = list(input().split())

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

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

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

Solution (Python):

n = int(input())
a = [str(i) for i in input().split()]

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

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

Solution (Python):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
def input(): return sys.stdin.readline().strip()
def STR(): return input()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
inf = sys.maxsize
mod = 10 ** 9 + 7

n = INT()
s = S_LIST()
if len(set(s)) == 4:
    print('Four')
else:
    print('Three')

Solution (Python):

n = int(input())
s = set(map(str, input().split()))

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

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

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

Solution (Python):
N = int(input())
l = input().split()
cnt = 0
for i in l:
    if i == "Y":
        cnt += 1
if cnt >= 1:
    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()
s=len(set(list(input().split(' '))))
if s==4:
    print('Four')
else:
    print('Three')

Solution (Python):
def Hina_Arare(n , sl):

    ans = ""

    count = len(set(sl))

    if count == 3:
        ans = "Three"
    else:
        ans = "Four"

    return ans

def main():
    n = int(input())
    sl = list(map(str , input().split()))
    print(Hina_Arare(n , sl))


if __name__ == '__main__':
    main()

Solution (Python):

def main():
    import sys
    
    sys.setrecursionlimit(10000000)
    from collections import Counter, deque
    
    from itertools import combinations, permutations
    
    from bisect import bisect_left,bisect_right
    from math import floor, ceil
    

    

    N = int(input())
    S = list(input().rstrip().split())
    if len(set(S))==4:
        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):
N = int(input())
S = list(input().split())

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

Solution (Python):


import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
nin = lambda y: [ni() for _ in range(y)]
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda y: [na() for _ in range(y)]
nf = lambda: float(ns())
nfn = lambda y: [nf() for _ in range(y)]
nfa = lambda: list(map(float, stdin.readline().split()))
nfan = lambda y: [nfa() for _ in range(y)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda y: [ns() for _ in range(y)]
ncl = lambda y: [list(ns()) for _ in range(y)]
nas = lambda: stdin.readline().split()

N = ni()
S = nas()
c = dict()
for i in range(N):
    c[S[i]] = 1

print("Three" if len(c.items()) == 3 else "Four")

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

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

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

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

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

Solution (Python):
N = int(input())
hina = input().split()
flag = "syurui_3"
for i in hina:
  if i == "Y":
    flag = "syurui_4"
if flag == "syurui_3":
  print("Three")
else:
  print("Four")

Solution (Python):
_ = input()
s = set(input().split())
print("TFhoruere"[len(s)==4::2])

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

S = set(s)

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

Solution (Python):








def resolve():
    n=int(input())
    S=list(map(str,input().split()))

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



resolve()

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

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

Solution (Python):
from sys import stdin

n = stdin.readline()
s = set(stdin.readline().rstrip().split())
s.remove("P")
s.remove("W")
s.remove("G")
if s:
    print("Four")
else:
    print("Three")

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

Solution (Python):
a=input()
b=set(input().split())
if len(b) == 3:
  print("Three")
elif len(b) == 4:
  print("Four")

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

t = input().split()
count = []
memo = 0
for i in t:
    if i in count:
        continue
    count.append(i)
    memo += 1
if memo == 3:
    print('Three')
else:
    print('Four')

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

cnt=0
for i in range(N):
    if S[i]=='Y':
        print('Four')
        break
        cnt=0
    else:
        cnt+=1
if cnt==N:
    print('Three')

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

Solution (Python):


n = int(input().rstrip())
ans = len(set(input().rstrip().split(" ")))
print("Four" if ans == 4 else "Three")

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

if s.count('W') > 0 and s.count('P') > 0 and s.count('G') > 0 and s.count('Y') > 0:
  print('Four')
else:
  print('Three')

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=list(input().split())
print("Three" if len(set(S))==3 else "Four")

Solution (Python):
n = int(input())
arare = set(input().split())
if len(arare) == 3:
    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):
a = int(input())
b = input().split()
print("Four" if "Y" in b 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())
a = input().split()

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

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

Solution (Python):
from collections import Counter
N=int(input())
c=Counter(list(input().split()))
if(len(c)==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):
_ = input()
a_L = list(map(str,input().split()))

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

Solution (Python):

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

Solution (Python):
N = int(input())
A = {x for x in input().split()}

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

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

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

s=set(s)

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

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

if __name__ == '__main__':
    main()

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

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

Solution (Python):
t = ['Zero', 'One', 'Two', 'Three', 'Four']
n = int(input())
a = set(input().split())
print(t[len(a)])

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

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

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

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

ans = False
for s in S_list:
    if s == "Y":
        ans = True
        break

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

Solution (Python):
N = int(input())
colors = list(input())
judge = 'Three'

for c in colors:
    if (c == 'Y'):
        judge = 'Four'
        break

print(judge)

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

Solution (Python):
from collections import Counter
n = int(input())
S = list(input().split())
cS = Counter(S).keys()
if "Y" in cS or len(cS) == 4:
  print("Four")
else:
  print("Three")

Solution (Python):
n = int(input())
s = list(map(str, input().split()))
d = {}
for i in range(n):
    if s[i] not in d:
        d[s[i]] = 1
    else:
        d[s[i]] += 1
if len(d.keys()) == 3:
    print('Three')
else:
    print('Four')

Solution (Python):











import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,sqrt,factorial,hypot,log 
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint
def ceil(a,b): return (a+b-1)//b
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    N=I()
    S=ST().split()
    S=set(list(S))
    if len(S)==4:
        print("Four")
    else:
        print("Three")
if __name__ == '__main__':
    main()

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

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

Solution (Python):
from collections import Counter

n = int(input())
S = list(input().split())
c = Counter(S)
if len(c) == 4:
    print('Four')
else:
    print('Three')

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

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

Solution (Python):
import sys

def solve():
    input = sys.stdin.readline
    N = int(input())
    S = set([str(i) for i in input().strip("\n").split()])
    if len(S) == 3: print("Three")
    else:print("Four")

    return 0

if __name__ == "__main__":
    solve()

Solution (Python):

n = int(input())
s = [str(i) for i in input().split()]

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

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

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

Solution (Python):
n, *s = open(0).read().split()
if "Y" in s: print("Four")
else: print("Three")

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

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

Solution (Python):

a = int(input())
l = list(map(str,input().split()))

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

Solution (Python):
def main():
    N = int(input())
    A = [i for i in input().split()]
    ans = ["Three", "Four"]
    print(ans[0] if len(set(A)) == 3 else ans[1])


if __name__ == '__main__':
    main()

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

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

Solution (Python):


N = int(input().strip())
S_list = input().rstrip().split()

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

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

Solution (Python):
import numpy as np

N = int(input())

S = [str(_) for _ in input().split()]

Num = len(set(S))

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

Solution (Python):
n = int(input())
s = set(input().split())
a = {3:"Three",4:"Four"}
print(a[len(s)])

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

Solution (Python):
n = int(input())
s = 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):
N = int(input())
A = list(input().split())
A = set(A)
print("Four" if len(A)==4 else "Three")

Solution (Python):
input()
print("Four" if "Y" in input() 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 = [_ for _ in input().split()]
if not 'Y' in s:
    print('Three')
else:
    print('Four')

Solution (Python):
from collections import Counter
n = input()
c = Counter(input().split())
print('Three' if len(c) == 3 else 'Four')

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

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

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

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

Solution (Python):
import collections
N = int(input())
hinaarare = input().split()

c = collections.Counter(hinaarare)

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

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

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

Solution (Python):
N = int(input())
S_li = list(input().split())
types = len(list(set(S_li)))
print("Three" if types == 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())
S=list(map(str,input().split()))
if len(set(S))==4:
	print("Four")
else:
	print("Three")

Solution (Python):
n = int(input())
sl = list(map(str, input().split()))
d = set()
for s in sl:
    d.add(s)

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

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

f=0
for i in range(N):
    if S[i]=="Y":
        f=1
        
if f==1:
    print("Four")
else:
    print("Three")

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

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

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

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

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

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

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

Solution (Python):
def main():
    num = int(input())
    colors = list(input().split(" "))
    for color in colors:
        if color == "Y":
            print("Four")
            break
    else:
        print("Three")


if __name__ == '__main__':
    main()

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

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

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

main()

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

l = input()

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

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

Solution (Python):




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


if __name__ == "__main__":
    main()

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

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

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

for s in S:
    if s == 'Y':
        print('Four')
        flg = False
        break

if flg == True:
    print('Three')

Solution (Python):
n = input()
b = raw_input().split()
a = []
for i in b:
    if i not in a:
        a.append(i)
if len(a) == 3:
    print "Three"
else:
    print "Four"

Solution (Python):
n = input()
arr = raw_input().split()
c = []
for k in arr:
    if k not in c:
        c.append(k)
if len(c) == 3:
    print "Three"
else:
    print "Four"

Solution (Python):
N = int(input())
Slist = input().split()
isFour = False

for n in range(N):
    if Slist[n] == "Y":
        isFour = True

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

Solution (Python):
_ = input()

hina_arares = input().split()
hina_arare_type = set(hina_arares)

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

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

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

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

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

count = [0] * 4

for i in range(n):
    if(s[i] == 'G'):
        count[0] = 1
    elif(s[i] == 'W'):
        count[1] = 1
    elif(s[i] == 'P'):
        count[2] = 1
    elif(s[i] == 'Y'):
        count[3] = 1

total = 0
for i in range(4):
    total += count[i]

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

Solution (Python):
n=int(input())
*s,=list(input().split())
ans=len(set(s))
if ans == 3:
    print("Three")
elif ans == 4:
    print("Four")
else:
    print("NA")

Solution (Python):
n = int(input())
s = list(input().split())
if "G" in s and "P" in s and "W" in s and "Y" in s:
    print("Four")
elif "G" in s and "P" in s and "W" in s:
    print("Three")

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

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

arare = 0
if "P" in s:
    arare += 1
if "W" in s:
    arare += 1
if "G" in s:
    arare += 1
if "Y" in s:
    arare += 1

if arare == 3:
    print("Three")
else:
    print("Four")

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

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

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

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

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

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

dic={}

flag=False

for ss in s:
    if ss not in dic:
        dic[ss] = 1

if len(dic) == 4:
    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=input()
print("Four" if len(set(map(str,input().split())))==4 else "Three")

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

a = Counter(A)
if len(a)==4:
    print('Four')
else:
    print('Three')

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=INT()
    s=LISTS()
    if 'Y' in s:
        print('Four')
    else:
        print('Three')
if __name__ == '__main__':
    do()

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())

S = set(S)

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

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

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

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

arr = [0] * 4
for i in range(n):
    if s[i] == 'P':
        arr[0] = 1
    elif s[i] == 'W':
        arr[1] = 1
    elif s[i] == 'G':
        arr[2] = 1
    elif s[i] == 'Y':
        arr[3] = 1

if sum(arr) == 3:
    print('Three')
else:
    print('Four')

Solution (Python):
n=int(input())
s=list(map(str, input().split()))
s_new=''.join(s)
if 'Y' in s_new:
    print('Four')
else:
    print('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())
if "Y" in s:
	print("Four")
else:
	print("Three")

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

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

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

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

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

Solution (Python):
import math
import sys
from functools import reduce
input = sys.stdin.readline

def main():
    input()
    print("Four" if "Y" in input() else "Three")

main()

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

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

Solution (Python):
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys




read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

A = int(readline())
S = set(readline().decode().split())

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

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

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

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

Solution (Python):
n = int(input())
flag = False
s = input().split(" ")
for c in s:
  if(c == "Y"):
    flag = True

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

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 = list(input().split())
if len(set(S)) == 3:
    print("Three")
else:
    print("Four")

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

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

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

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

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

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

Solution (Python):
int(input())
b = ["One","Two","Three","Four"]
a = list(map(str,input().split(" ")))
print(b[len(set(a))-1])

Solution (Python):
N = int(input())
S = set(map(str,input().split()))
if len(S) == 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()))
if len(set(s)) == 3:
    print("Three")
else:
    print("Four")

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

color_dict = {}

for i in S:
  if i in color_dict:
    color_dict[i] += 1
  else:
    color_dict[i] = 1

if len(color_dict.keys()) == 4:
  ans = "Four"
else:
  ans = "Three"
print(ans)

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

lst1 = list(set(lst1))

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

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

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

Solution (Python):


import numpy as np

input()
s=input()
if(s.count("Y")):
    print("Four")
else:print("Three")

Solution (Python):
n=int(input())
a=list(set(map(str,input().split())))
if len(a)==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(input())

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

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

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

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

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

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

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

if "P" and "W" and "G" and "Y" in h:
  print("Four")
elif "P" and "W" and "G" in h:
  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())
s = input().split()
print('Four') if s.count('Y') else print('Three')

Solution (Python):
N=int(input())
l=list(map(str,input().split()))
ans="Three"
for a in l:
  if a=="Y":
    ans="Four"
print(ans)

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

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

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

Solution (Python):
input()
s=input()
if 'Y'in s:
  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()
if 'Y' in s:
  print('Four')
else:
  print('Three')

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

Solution (Python):
N=int(input())//3
A = set(input().split())
if 'Y' in A:
  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):
n=input()
s=input().split()
print('Three' if 'Y' not in s else 'Four')

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

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

Solution (Python):
import sys
input = sys.stdin.readline
n=int(input())
s=list(map(str,input().split()))
from collections import Counter
a=Counter(s)
print("Four" if len(a)==4 else "Three")

Solution (Python):
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip().split()
from collections import Counter
c = Counter(S)
if len(c.keys()) == 4:
    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().split()
print('Three' if len(set(s)) == 3 else 'Four')

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

Solution (Python):


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

isFour = False
for i in s:
    if i == "Y":
        isFour = True

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

Solution (Python):

 
import math
import itertools
import sys
import copy
 



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

for i in range(N) :
  if S[i] == "Y" :
    print ("Four")
    exit()

print ("Three")

Solution (Python):

N = int(input())
s = [str(i) for i in input().split()] 

tmp = 0
for i in range(N):
    if s[i] == 'Y':
        tmp += 1
if tmp == 0:
    print("Three")
else:
    print("Four")

Solution (Python):

n = int(input())
s = list(map(str,input().split()))
status = 0

for i in range(n):
    if s[i] == "Y":
        print("Four")
        status = 1
        break

if status == 0:
    print("Three")