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 = 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):
n=int(input())
a=list(input().split(" "))
s=0
for color in a:
	if color =='Y':
		s=1
if(s==0):
	print("Three")
else :
	print("Four")

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

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

for i in range(N):
    if arare[i] == 'Y':
        print('Four')
        break
else:
    print('Three')

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

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

flag = 0

for j in range(int(N)):
    if l[j] == 'Y':
      flag = 1

if flag == 1:
  print("Four")
else: print('Three')

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

Solution (Python):

def main():
    n = input()
    arare = input().split()
    
    for i in arare:
        if i == "Y":
            return "Four"
    return "Three" 

retval = main()
print(retval)

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()
color = "Three"

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

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

Solution (Python):

N = int(input())
L = input().rstrip()


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

Solution (Python):
count=int(input())
data=input().split()
data=list(set(data))

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

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

Solution (Python):
if __name__ == "__main__":
    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()
s = s.split()

output = 'Four' if 'Y' in s else 'Three'

print(output)

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

Solution (Python):
from collections import Counter
N = int(input())
S = Counter(input().split())
if S["Y"] != 0:
    print("Four")
else:
    print("Three")

Solution (Python):
N = input()
print(["Three", "Four"]["Y" in input().split()])

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

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

f = False
for i in range(n):
    if s[i] == "Y":
        f  =True
        break
    
if f:
    print("Four")
else:
    print("Three")

Solution (Python):


if __name__ == "__main__":
    
    N = int(input())
    S = input().split()
    for c in S:
        if c == "Y":
            print("Four")
            exit()
    print("Three")

Solution (Python):
from collections import Counter
N =int(input())
S = input().split(" ")
temp_counter = Counter(S)
temp = temp_counter.keys()
if len(temp) == 4:
    print("Four")
elif len(temp) == 3:
    print("Three")

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

res = 'Three'
if 'Y' in s:
  res = 'Four'

print(res)

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

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

Solution (Python):
n = int(input())
s = list(map(str, input().split()))
s.sort()
k = 0
x = ""
for a in s:
    if(x != a):
        x = a
        k += 1
if(k == 3):
    print("Three")
else:
    print("Four")

Solution (Python):
import numpy
import sys

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

Solution (Python):
from collections import Counter
N=input()
S=raw_input().split()
n=len(Counter(S))
print "Three" if n==3 else "Four"

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

Solution (Python):

n = input()
s = set(input().split(" "))

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

Solution (Python):
n=int(input())
s=list(input())
a=s.count("Y")
print("Three" if a==0 else "Four")

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

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

main()

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

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

Solution (Python):
import collections
dic = collections.defaultdict(lambda: 0)
int(input())
for i in list(input().split()):
    dic[i] += 1
if len(list(dic.keys())) == 4:
    print('Four')
else:
    print('Three')

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

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

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

Solution (Python):
N=input()
S=set(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()
s = set(s)
if len(s) == 4:
    print('Four')
else:
    print('Three')

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

if a.count('Y') == 0:
  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 = input().split()

flag = 0
for i in S:
    if i == 'Y':
        flag = 1
        break

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

Solution (Python):
n = input().strip()
s = set(input().strip().split(" "))
if len(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()

def solve():
    for c in s:
        if c == 'Y':
            print('Four')
            return
    print('Three')

solve()

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

Solution (Python):
def main():
    N = int(input())
    S = input().split()
    for s in S:
        if s == 'Y':
            print('Four')
            return
    print('Three')


if __name__ == '__main__':
    main()

Solution (Python):
import sys,collections;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n = I()
s = list(Ss())
if s.count("Y") > 0:
    print("Four")
else:
    print("Three")

Solution (Python):
from collections import Counter
n = int(input())
A = [i for i in input().split()]

c = Counter(A)

if len(c.keys()) == 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 = [i for i in input().split()]
from collections import Counter
count = Counter(S)
if len(count)==4:
    print('Four')
else:
    print('Three')

Solution (Python):
n=int(input())
str=input().split(" ")
ans=3
for i in range(0,n):
    if str[i]=="Y":
        ans=4
if ans==4:
    print("Four")
else:
    print("Three")

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

    for a in A:
        if a == 'Y':
            print('Four')
            return
    else:
        print('Three')



if __name__ == "__main__":
    solve()

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

Solution (Python):


import os
import sys
import math
import numpy as np


N = int(input())

arare = input().split()

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

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

S = input().split()

check = "Three"

for i in S:
	if i == "Y":
		check = "Four"

print(check)

Solution (Python):
N = int(input())
A = list(input())
key = 0
for a in A:
    if a == "Y":
        key += 1
if key >= 1:
    print("Four")
else:
    print("Three")

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

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

print("Three")

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

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

Solution (Python):
from collections import Counter


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

    c = Counter(S)

    n_types = len(c.keys())
    if n_types == 3:
        print("Three")
    elif n_types == 4:
        print("Four")


if __name__ == '__main__':
    main()

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

Solution (Python):
n = int(input())
S = list(input().split())
num = 0
rec = []
for i in range(n):
    if S[i] not in rec:
        num += 1
        rec.append(S[i])

if num == 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):
n=int(input())
s=input().split()

for i in range(len(s)):
    if s[i]=="Y":
        print("Four")
        break
else:
    print("Three")

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

Solution (Python):

"""
B - Hina Arare
https://beta.atcoder.jp/contests/abc089/tasks/abc089_b

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    N = int(input())
    arare = list(input().split())
    if 'Y' in arare:
        print('Four')
    else:
        print('Three')


if __name__ == '__main__':
    main(sys.argv[1:])

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

ans = 0

for i in range(N):
    if s[i] == 'Y':
        ans = 1
        break





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

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

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

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

r = 3
for x in S:
    if x == "Y":
        r = 4

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

Solution (Python):
input();print ["","","","Three","Four"][len(set(raw_input().split()))]

Solution (Python):
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]
n=i1()
from collections import Counter
c= Counter([i for i in input().split()])
if len(c)==4:
 print("Four")
else:
 print("Three")

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

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

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

Solution (Python):



import array
from bisect import *
from collections import *
import fractions
import heapq 
from itertools import *
import math
import random
import re
import string

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

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

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

Solution (Python):
N = int(input())
*S, = input().split()
print('Four'*('Y' in S)or'Three')

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

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

Solution (Python):
n = int(raw_input())
q = raw_input().split(" ")
if "Y" not in q:
  print "Three"
else:
  print "Four"

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

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

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

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

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())
s = set(input().split())
print(['Three','Four'][len(s)>3])

Solution (Python):

import math

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

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

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

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

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

flag = False
for s in S:
    if s == "Y":
        flag = True
        break
if flag:
    print("Four")
else:
    print("Three")

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    n = I()
    c = collections.Counter(S().split())

    if len(c) == 3:
        return 'Three'
    return 'Four'


print(main())

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

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

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

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

array = input().split()

print("Four" if "Y" in array else "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())
S = input()
print('Four' if 'Y' in S else 'Three')

Solution (Python):
n = int(input())
j = input()
if "P" in j and "Y" in j and "G" in j and "W" in j:
    print("Four")
else:
    print("Three")

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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline()

n = ni()
ss = na()
se = set(ss)
if len(se) == 4:
    print("Four")
else:
    print("Three")

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

Solution (Python):
from collections import Counter

n = input()
s = input().split()
ss = Counter(s)
print('Three' if len(ss) == 3 else 'Four')