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 =[i for i in 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)) == 4:
  print("Four")
else:
  print("Three")

Submission status: Accepted

Solution code:
input()
s=[]
[s.append(i) for i in input().split()]
print('Four') if 'Y' in s else print('Three')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

for c in S:
    if c == 'Y':
        print('Four')
        quit()
print('Three')

Submission status: Accepted

Solution code:
N = int(input())
S = input().split()
ans = 'Three'
for i in S:
    if i =='Y':
        ans = 'Four'
        break
print(ans)

Submission status: Accepted

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

# G W W G P W P G G
v = {'G': 0, 'W': 0, 'P': 0, 'Y': 0}
for s in S:
    v[s] += 1

res = 0
for r in ['G', 'W', 'P', 'Y']:
    if v[r] > 0:
        res += 1

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

flag = True

for i in s:
    if i=='Y':
        flag=False
        break

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

Submission status: Accepted

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

cnt=3
for str in S:
    if str == "Y":
        cnt = 4

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

Submission status: Accepted

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

ct = 0
if 'P' in S:
    ct += 1
if 'W' in S:
    ct += 1
if 'G' in S:
    ct += 1
if 'Y' in S:
    ct += 1

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

Submission status: Accepted

Solution code:
N = int(input())
S = [x for x in input().split()]
li = {}
for i in S:
    if(i in li):
        li[i]+=1
    else:
        li[i]=1
if('Y' in li):
    print('Four')
else:
    print('Three')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
S = set(input().split())
print(["Three", "Four"][not(3 == len(S))])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()
print(['Three','Four'][len(set(input().split()))-3])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
S = [i for i in input().split()]
if S.count("Y"):
    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 = int(input())
s = input().split()

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

print('Three')

Submission status: Accepted

Solution code:
n = int(input());print("TFhoruere"[input().split().count('Y')!=0::2])

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:
n=int(input())
arr=list(map(str,input().split()))
count=0
if arr.count('P')!=0:
  count+=1
if arr.count('Y')!=0:
  count+=1
if arr.count('W')!=0:
  count+=1
if arr.count('G')!=0:
  count+=1
if count==3:
  print('Three')
if count==4:
  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 = map(str,input().split())
if 'Y' in s:
    print("Four")
else:
    print("Three")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print("Four" if "Y" in a else "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())
S = input().split()

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

Submission status: Accepted

Solution code:
n = int(raw_input())
s = map(str, raw_input().split())
a = len(list(set(s)))
if a == 4:
	print 'Four'
else:
	print 'Three'

Submission status: Accepted

Solution code:
#089 B
N = int(input())
List=list(input().split())
if List.count('Y') >0:
    print('Four')
else:
    print('Three')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("Four")
else:
    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())
a = list(map(str, input().split()))
if 'Y' in a:
    print('Four')
else:
    print('Three')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
S = list(map(str, input().split()))
kind = len(set(S))
if kind == 3:
    print("Three")
elif kind == 4:
    print("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 = int(input())
S = input().split()

S.sort()
count = 0
tmp = ''
for s in S:
    if tmp != s:
        count += 1
    tmp = s
if count == 3:
    print('Three')
else:
    print('Four')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())
ans="Three"
for s in input().split():
  if s=="Y":
    ans="Four"
    break
print(ans)

Submission status: Accepted

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

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

yellow = False

for i in range(len(s)):
    if s[i] == "Y":
        yellow = True
        break

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

Submission status: Accepted

Solution code:
N = int(input())
s = input().split()
a = set()
for i in range(N):
    a.add(s[i])
l = list(a)
if len(l)==3:
    print("Three")
else:
    print("Four")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import collections as c
ip = lambda : map(int, input().split())

#################
N = int(input())
mp = {3:'Three',4:'Four'}
print(mp[len(c.Counter(input()))-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
n = int(stdin.readline().rstrip())
sl = [_ for _ in stdin.readline().rstrip().split()]
if len(set(sl)) == 4:
    print('Four')
else:
    print('Three')

Submission status: Accepted

Solution code:
def sortex(X):
  b=sorted(X)
  b.append("null")
  a=[]
  for i in range(len(X)):
    if b[i]!=b[i+1]:a.append(b[i])
  return a
n,s=int(input()),input().split();s=sortex(s);print("Four"if len(s)==4else"Three")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# /usr/bin/python
# -*- coding: utf-8 -*-
#
import sys
 

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


input()
if isfour(list(map(str, sys.stdin.readline().rstrip().split()))):
  print("Four")
else:
  print("Three")

Submission status: Accepted

Solution code:
# /usr/bin/python
# -*- coding: utf-8 -*-
#
import sys
 

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


input()
s = list(map(str, sys.stdin.readline().rstrip().split()))
if isfour(s):
  print("Four")
else:
  print("Three")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
S = [s for s in input().split()]

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

Submission status: Accepted

Solution code:
_=input()
a=print('Four' if any([True if s=='Y' else False for s in input().split()]) else 'Three')

Submission status: Accepted

Solution code:
def solve(string):
    n, *s = string.split()
    return "Three" if len(set(s)) == 3 else "Four"


if __name__ == '__main__':
    print(solve('\n'.join([input(), input()])))

Submission status: Accepted

Solution code:
n=input();print("TFhoruere"[4<len(set(input()))::2])

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    c = {3: 'Three', 4: 'Four'}
    print(c[len(set(input().split()))])


main()

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())
s = list(map(str,input().split()))


y_n = s.count('Y')

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

Submission status: Accepted

Solution code:
import collections

n = int(input())
a = list(input().split())

l = collections.Counter()

for i in a:
  l[i] += 1
print("Three" if len(l) == 3 else "Four")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def hina_arare(N: int, S: list) -> str:
    return 'Four' if 'Y' in S else 'Three'


if __name__ == "__main__":
    N = int(input())
    S = input()
    ans = hina_arare(N, S)
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
S = set(input().split())
print(['Three','Four'][len(S)-3])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n=int(input())
hoge=list(map(str,input().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
N = int(input())
S = input().split()[:-1]
ans = "Three" if len(set(S)) == 3 else "Four"
print(ans)

Submission status: Accepted

Solution code:
print("TFhoruere"['Y'in open(0).read()::2])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
 
S = list(map(str, input().split()))
 
color = [0, 0, 0, 0]
 
for s in S:
  if (color.count(0) == 0):
    print("Four")
    break
  
  if (s == "P"):
    color[0] += 1
  elif (s == "G"):
    color[1] += 1
  elif (s == "W"):
    color[2] += 1
  else:
    color[3] += 1
  
if (color.count(0) == 1):
  print("Three")

Submission status: Accepted

Solution code:
n = int(input())
x = list(input().split())

if len(set(x)) == 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()
print("Four" if S.count("Y") else "Three")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    S = input().split()
    four = False
    for s in S:
        if s == 'Y':
            four = True
    if four:
        print("Four")
    else:
        print("Three")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys

def main():
    input = sys.stdin.readline
    N = int(input())
    S = list(map(str, input().split()))

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
_ = input()
S = set(input().split())
print(['Three', 'Four'][len(S) == 4])

Submission status: Accepted

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

ans = "Three"

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

Submission status: Accepted

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

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

print('Three')

Submission status: Accepted

Solution code:
n = int(input())
S = list(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] == "P":
        cnt[2] += 1
    else:
        cnt[3] += 1
if 0 in cnt:
    print("Three")
else:
    print("Four")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# B
n = int(input())
s = [str(s) for s in input().split()]
l = ['P', 'W', 'G', 'Y']
ans = 0
for c in l:
    if s.count(c) > 0:
        ans += 1
if ans == 4:
    print('Four')
else:
    print('Three')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc089/tasks/abc089_b
n = int(input())
s = input().split()
print("Three") if len(set(s)) == 3 else print("Four")

Submission status: Accepted

Solution code:
N = input()
A = [i for i in input().split()]

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

Submission status: Accepted

Solution code:
_ = input()
print(['Three', 'Four']['Y' in input()])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
n = int(input())
s = sys.stdin.readline().rstrip().split()
print('Three' if len(set(s)) == 3 else 'Four')

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:

n = int(input())


Arare = input().split()
#print(Arare)
#print(Arare.count('Y'))
print ('Four' if Arare.count('Y') > 0 else 'Three' )

def another():
    is_four = False
    for ai in Arare:
        if ai == 'Y':
            is_four = True
            break

    print( 'Four' if is_four else 'Three')

#another()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input();print("TFhoruere"[len(set(input().split()))-3::2])

Submission status: Accepted

Solution code:
N=int(input())
Colors=list(map(str,input().split()))
dict={}

for c in Colors:
  dict[c]=1

ans=0
for d in dict:
  ans+=1
  
print('Three' if ans==3 else 'Four')

Submission status: Accepted

Solution code:
input()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
num = int(input())
colors = map(str, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

def HinaArare( S ):
    for Si in S:
        if Si == 'Y':
            print( 'Four' )
            return
    print( 'Three' )

HinaArare( S )

Submission status: Accepted

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

arare_array = input().split()

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

Submission status: Accepted

Solution code:
n = int(input())
s = list(input().split())
ans = 'Three'
for s_ in s:
    if s_=='Y':
        ans = 'Four'
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
_ = input()
li = list(input().split())
if ('Y' in li):
    print("Four")
else:
    print("Three")

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

Submission status: Accepted

Solution code:
""" AtCoder """

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

l = set()

for i in range(N):
    l.add(S[i])

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

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import sys
import math
import fractions

def j(q):
    if q==1: print("Three")
    else:print("Four")
    exit(0)


def ct(x,y):
    if (x>y):print("")
    elif (x<y): print("")
    else: print("")

def ip():
    return int(input())




n = ip()                              #入力整数1つ
#a,b= (int(i) for i in input().split())      #入力整数横2つ
#k,a,b = (int(i) for i in input().split())    #入力整数横3つ
#n,m,x,y= (int(i) for i in input().split())  #入力整数横4つ
#a = [int(i) for i in input().split()]        #入力整数配列
#a = input()                                  #入力文字列
a = input().split()                          #入力文字配列

#jの変数はしようできないので注意
#全足しにsum変数使用はsum関数使用できないので注意
b = len(set(a))
if b==3: j(1)
j(0)

Submission status: Accepted

Solution code:
n=input()
lst=list(map(str,input().split()))
for i in lst:
    if i == 'Y':
        print('Four')
        exit()
print('Three')

Submission status: Accepted

Solution code:
print('TFhoruere'['Y'in open(0).read()::2])

Submission status: Accepted

Solution code:
input();print('TFhoruere'[len(set(input()))>4::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
s = list(map(str,input().split()))
msg = 0
for i in range(n):
    if s[i]=='Y':
        msg = 'Four'
        break
    else:
        msg = 'Three'
print(msg)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
S_x = input().split()
S = []
for i in range(N):
    S.append(S_x[i])
ans_p = 0
ans_y = 0
ans_w = 0
ans_g = 0
for char in S:
    if char == "P":
        ans_p = 1
    elif char == "Y":
        ans_y = 1
    elif char == "W":
        ans_w = 1
    elif char == "G":
        ans_g = 1
ans = ans_p + ans_y + ans_g + ans_w

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

Submission status: Accepted

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

Submission status: Accepted

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

S = list(set(S))

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

Submission status: Accepted

Solution code:
N=int(input())
s=list(map(str,input().split()))
print('Three' if s.count('Y')==0 else 'Four')

Submission status: Accepted

Solution code:
n=input();print(['Three','Four'][len(set(input().split()))-3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
m = set(map(str,input().split()))
if len(m) == 3:
    print("Three")
else:
    print("Four")

Submission status: Accepted

Solution code:
input()
print(["Three", "Four"]["Y" in input()])

Submission status: Accepted

Solution code:
# ABC 089
def getInt(): return int(input())
def getIntList(): return [int(x) for x in input().split()]
def db(x): 
    global debug
    if debug: print(x)
debug = False
N = getInt()
S = [x for x in input().split()]
s = set(S)
if len(s)==3: print('Three')
else: print('Four')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
Arare = input().split(" ")

p = Arare.count("P")
w = Arare.count("W")
g = Arare.count("G")
y = Arare.count("Y")

if p*w*g*y == 0:
    print("Three")
else:
    print("Four")

Submission status: Accepted

Solution code:
#encoding:utf-8

n = int(input())
s = [str(i) for i in input().split()]
s_ = set(s)
if "Y" in s:
    answer = "Four"
else:
    answer = "Three"

print(answer)

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:
n = int(input())
A = [i for i in input().split()]
ans = 'Three'
for i in range(n):
    if A[i] == 'Y':
        ans = 'Four'
        break
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n=int(input())
s=set(input().split())
print("{}".format("Four" if len(s) == 4 else "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:
import collections
s = int(input())
a = list(input().split())
c = collections.Counter(a)

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

Submission status: Accepted

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

S=list(set(S))

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

Submission status: Accepted

Solution code:
import sys
N = int(input())
S = [0]*N
# T = str(input())
s = set([n for n in input().split()])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
N = int(input())
S = list(map(str,input().split()))
count = 0
if "G" in S:
    count+=1
if "W" in S:
    count+=1
if "Y" in S:
    count+=1
if "P" in S:
    count+=1
if count == 3:
    print("Three")
elif count == 4:
    print("Four")

Submission status: Accepted

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

ans = "Three"
for s in S:
    if s == "Y":
        ans = "Four"

print(ans)

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 = list(input().split())
if any(i == "Y" for i in s):
  print("Four")
else:
  print("Three")