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



Sample input:
6
G W Y P Y W


Sample output:
Four

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
input()
print('Four' if 'Y' in input() else 'Three')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

else:
    print("Three")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(raw_input())

line = raw_input()

p = 'Three'

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

print p

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
#http://abc089.contest.atcoder.jp/
# -*- coding: utf-8 -*-

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)

Submission status: Accepted

Solution code:
n = int(input())
t = 'Y'
x = input().split()
    
if(t in x):
  print('Four')
else:
  print('Three')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

N = int(input())
STR = input().split()
#print(N, STR)
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
#print(G+W+Y+P)
if counter == 4:
    print("Four")
else:
    print("Three")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())						# 5

S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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"

Submission status: Accepted

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

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

Submission status: Accepted

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

# 重複を削除
editedArray = list(set(S))

count = len(editedArray)

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
#!/usr/bin/env pypy3


import collections


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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'

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

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

if not isFour:
    print ('Three')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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")

Submission status: Accepted

Solution code:
X = int(input())
lis = input().split(" ")
# print(lis)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

ans = "Three"

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

print(ans)

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
a = str(input()).split()
c = a.count('Y')
if c > 0:
    print('Four')
else:
    print('Three')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
hina_list = input().split()
hina = set(hina_list)

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

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

print(a(s))

Submission status: Accepted

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


ACBC_089_B()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

retval = main()
print(retval)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

s = input().split()
color = "Three"

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
N = int(input())
L = input().rstrip()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(output)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
#-*- coding:utf-8 -*-

if __name__ == "__main__":
    # Yが存在したらfour
    N = int(input())
    S = input().split()
    for c in S:
        if c == "Y":
            print("Four")
            exit()
    print("Three")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

print(res)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
import numpy
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# coding=utf-8
n = input()
s = set(input().split(" "))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

main()

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a.count('Y') == 0:
  print('Three')
else:
  print('Four')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!A=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

solve()

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import os
import sys
import math
import numpy as np


N = int(input())
# seat = np.array([list(map(int, input().split())) for i in range(N)])
arare = input().split()

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

Submission status: Accepted

Solution code:
N = int(input())

S = input().split()

check = "Three"

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

print(check)

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

print("Three")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
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:])

Submission status: Accepted

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

ans = 0

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
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")