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

import sys
import math
from bisect import bisect_left, bisect_right, insort_left, insort_right
from collections import defaultdict, deque, Counter
from copy import deepcopy
from fractions import gcd
from functools import lru_cache, reduce
from heapq import heappop, heappush
from itertools import accumulate, groupby, product, permutations, combinations, combinations_with_replacement
from math import ceil, floor, factorial, log, sqrt, sin, cos
from operator import itemgetter
from string import ascii_lowercase, ascii_uppercase, digits
sys.setrecursionlimit(10**7)
rs = lambda: sys.stdin.readline().rstrip()
ri = lambda: int(rs())
rf = lambda: float(rs())
rs_ = lambda: [_ for _ in rs().split()]
ri_ = lambda: [int(_) for _ in rs().split()]
rf_ = lambda: [float(_) for _ in rs().split()]
INF = float('inf')
MOD = 10 ** 9 + 7
PI = math.pi

N = ri()
S = list(Counter(rs_()))
print('Three' if len(S) == 3 else 'Four')

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

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

Solution (Python):
n = int(input())
lis = list(input().split())
dic = {}
for a in lis:
  if a in dic:
    dic[a] += 1
  else:
    dic[a] = 1
count = 0
for b in dic.keys():
  count += 1
if count == 3:
  print("Three")
else:
  print("Four")

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

Solution (Python):
print([0,1,2,'Three','Four'][0*int(input())+len(set(input().split()))])

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
def printns(x): print('\n'.join(x))
def printni(x): print('\n'.join(list(map(str,x))))
inf = 10**17
mod = 10**9 + 7


n=I()
u=input().rstrip().split(" ")
if "Y" in u:
    print("Four")
else:
    print("Three")

Solution (Python):
from collections import Counter

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

if len(Counter(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())
dic={}.fromkeys(map(str,input().split()))
if len(dic)==3:
  print("Three")
if len(dic)==4:
  print("Four")

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

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

Solution (Python):
n = int(input())
a = list(map(str,input().split()))
ans = 0
for i in range(n):
  if a[i] == 'Y':
    ans +=1
if ans > 0:
  print('Four')
else:
  print('Three')

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):
input();print("TFhoruere"[len(set(input().split()))==4::2])

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

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

print(number)

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

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

print(number)

Solution (Python):
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop

import collections

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

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

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

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

Solution (Python):
n=int(input())
lst = []
s = input().split(" ")
for i in range(n):
  if s[i] not in lst:
    lst.append(s[i])
if len(lst) == 3:
  print("Three")
else:
  print("Four")

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(str, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()
S = LIST()

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

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

Solution (Python):
n = int(input())
s = list(input().split())
for i in s:
    if i == "Y":
        print("Four")
        exit()
print("Three")

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

count = 0
if 'P' in s:
    count += 1
if 'W' in s:
    count += 1
if 'G' in s:
    count += 1
if 'Y' in s:
    count += 1

print('Three' if count == 3 else 'Four')

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

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

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

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

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

Solution (Python):
n=int(input())
c=list(map(str, input().split()))
L=[]
for i in range(n):
  if len([1 for l in L if l==c[i]]) == 0:
    L.append(c[i])
if len(L)==4:
  print('Four')
else:
  print('Three')

Solution (Python):
a=int(input())
b=list(map(str,input().split()))
ans="Three"
for i in range(a):
    if b[i]=="Y":
        ans="Four"
print(ans)

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

print('Four' if n==4 else 'Three')

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()
if len(set(S)) == 4:
    print('Four')
elif len(set(S)) == 3:
    print('Three')

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

Solution (Python):
N,S=open(0);print('TFhoruere'[len(set(S.split()))%2<1::2])

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

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

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

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

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

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

print(x[a-1])

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

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

Solution (Python):
import sys

IS = lambda: sys.stdin.readline().rstrip()
II = lambda: int(IS())
MII = lambda: list(map(int, IS().split()))
MIIZ = lambda: list(map(lambda x: x-1, MII()))

INIT_VAL = 0
DP2 = lambda d1, d2: [[INIT_VAL]*d2 for _ in range(d1)]
DP3 = lambda d1, d2, d3: [[[INIT_VAL]*d3 for _ in range(d2)] for _ in range(d1)]

def main():
    n = II()
    hina = IS().split()
    t = len(set(hina))
    if t == 3: print('Three')
    else: print('Four')

if __name__ == '__main__':
    main()

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

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

print(ans)

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


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

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

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

Solution (Python):
def main():
    from collections import Counter

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

    ctr = Counter(s)
    cond = len(ctr.keys()) == 3
    print('Three' if cond else 'Four')


if __name__ == '__main__':
    main()

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

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

Solution (Python):
icase=0
if icase==0:
    n=int(input())
    s=list(input().split())
    s.sort()
    if s[-1]=="Y":
        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=int(input())
s=list(input().split())
print("Four" if "Y" in s else "Three")

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    N = int(input())
    for s in input().split():
        if s == "Y":
            print("Four")
            sys.exit()
    print("Three")

if __name__ == '__main__':
    main()

Solution (Python):
n=int(input())
List=[]
s=[0]*n
s=list(input().split())
for i in range(n):
  if (List.count(s[i])==0):
    List.append(s[i])
print("Three" if (len(List)==3) else "Four")

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

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

Solution (Python):

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

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

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

Solution (Python):
import sys
n, *s = sys.stdin.read().split()

def main():
  print('Four' if len(set(s)) == 4 else 'Three')
  
if __name__ == '__main__':
  main()

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

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

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

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

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

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

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

Solution (Python):



import queue 










mod = int(1e9+7)
INF = 1<<29
lINF = 1<<35

def readInt():
    return list(map(int,input().split()))

def main():
    n = int(input())
    s = input().split()
    m = set()
    for i in range(n):
        m.add(s[i])
    if len(m)==3:
        print("Three")
    else:
        print("Four")
    return

if __name__=='__main__':
    main()

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

Solution (Python):
from sys import stdin,setrecursionlimit
setrecursionlimit(10 ** 7)

n = int(stdin.readline().rstrip())
s = input().split()

li = set()

for i in s:
    li.add(i)

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

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

Solution (Python):
def resolve():
  n = int(input())
  s = list(input().split())
  for c in s:
    if c == 'Y':
      print('Four')
      return

  print('Three')
  return

if __name__ == "__main__":
  resolve()

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

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

Solution (Python):
N = int(input())
s = input().split()
flag = False
for i in s:
    if i=="Y":
        flag = True
print('Four' if flag ==True else 'Three')

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

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

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

Solution (Python):
n = int(input())
s = input().split()
cnt = {}
for x in s:
    if x not in cnt:cnt[x] = 1
    else:cnt[x] +=1
if len(cnt) == 3:
    print('Three')
else:print('Four')

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

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

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

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

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

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

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

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

Solution (Python):

import io

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

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

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

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

Solution (Python):

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

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

Solution (Python):
def main():
    n = int(input())
    str_list = list(input().split())

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


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
s = list(map(str, input().split()))
s = set(s)
ans = ['Zero', 'One', 'Two', 'Three', 'Four']
print(ans[len(s)])

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

Solution (Python):
import sys

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

if '__main__' == __name__:
    resolve()

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

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

Solution (Python):

import sys
input = sys.stdin.readline









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


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

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

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

s = set(S)

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

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

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

if __name__ == '__main__':
    main()

Solution (Python):
count_p=0
count_w=0
count_g=0
count_y=0


N=input()
N=int(N)
S=input()

for i in range(N*2):
    
    if i%2==0:
        
        if S[i]=='P' and count_p==0:
            count_p+=1
        if S[i]=='W' and count_w==0:
            count_w+=1
        if S[i]=='G' and count_g==0:
            count_g+=1
        if S[i]=='Y' and count_y==0:
            count_y+=1

if count_p+count_w+count_g+count_y==3:
    print('Three')
else:
    print('Four')

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

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

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

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

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

Solution (Python):
url = "https://atcoder.jp/contests/abc089/tasks/abc089_b"

def main():
    s = input()
    ame = list(input().split())
    ame = set(ame)
    ans = 'Four'
    if len(ame) == 3:
        ans = 'Three'
    print(ans)

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

ans = []
for i in range(n):
    if not s[i] in ans:
        ans.append(s[i])
    
if len(ans) == 3:
    print("Three")
else:
    print("Four")

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

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

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

Solution (Python):
print("TFhoruere"[len(set(open(0).read().split()))-4::2])

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

s2 = set(s)

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

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

Solution (Python):
import sys

N=int(input())
s=list(input().split())
for i in range(0, len(s)):
  if(s[i]=='Y'):
    print("Four")
    sys.exit(0)
print("Three")

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

for item in S:
    if item == "Y":
        ans = "Four"
        break

print(ans)

Solution (Python):
from collections import defaultdict

cnt = defaultdict(int)

n = int(input())
s = list(input().split())
for i in range(n):
    cnt[s[i]] += 1

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

Solution (Python):
n = int(input())
list_S = list(map(str, input().split()))
k = len(list(set(list_S)))
if k == 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 = input()
print("Three" if len(set(str(x) for x in input().split())) == 3 else "Four")

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

Solution (Python):
N = int(input())
A = input().split()
for a in A:
  if a == 'Y':
    print('Four')
    exit()
print('Three')

Solution (Python):
n=int(input())
A=sorted(list(input().split()))
if A[-1]=="Y":
  print("Four")
else:
  print("Three")

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

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

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

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

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

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

Solution (Python):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

n = ii()
S = isl()

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

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

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

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

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

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

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

s.sort()
cnt = 1
for i in range(n-1):
    if(s[i] != s[i+1]):
        cnt+=1

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

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

Solution (Python):

import math
import itertools
import statistics

import collections
n = int(input())
s = list(input().split())
if "G"in s and "W" in s and "P" in s and "Y" in s:
    print("Four")
else:
    print("Three")

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

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

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

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

Solution (Python):
N = int(input())
S = list(map(str, input().split()))
D = {}
L = ["zero", "one", "two", "Three", "Four"]
for i in S:
  if i in D:
    D[i] += 1
  else:
    D[i] = 1
print(L[len(D)])

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

Solution (Python):
a = int(input())
L = list(map(str, input().split()))
b = 'Three'
for i in range(a):
  if L[i] == 'Y':
    b = 'Four'
    break
print(b)

Solution (Python):
import math

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

se=set()

for i in range(n):
    se.add(s[i])


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

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

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

Solution (Python):
import sys
import os

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    N = ii()
    S = iss().split(' ')
    print('Three' if len(set(S)) == 3 else 'Four')


if __name__ == '__main__':
    main()

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

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

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

ans = 'Four' if S.count('Y') else 'Three'

print(ans)

Solution (Python):
def main():
    n = int(input())
    ss = list(input().split())

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

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
import sys
input=sys.stdin.readline

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

Solution (Python):
n = int(input())
sl = list(input().split())
sl_s = set(sl)

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

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

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

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

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

Solution (Python):
import sys

n=input()
ss=input().split()
for s in ss:
  if s=="Y":
    print("Four")
    sys.exit()
    
print("Three")

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

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

Solution (Python):
import math
import string


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor



dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]

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


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

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

ans=("G" in s) and ("Y" in s) and ("W"in s) and ("P" in s)
print("Four"if ans==True else"Three")

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

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

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

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

a ="Three"
for i in l:
  if i =="Y":
    a="Four"
    break
print(a)

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

Solution (Python):
N=int(input())
S=input().split()
ss=[a for a in S]
list=[]
for b in ss:
    if b in list:
        pass
    else:
        list.append(b)
if len(list)==3:
    print('Three')
else:
    print('Four')

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

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

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

PWGY = [0] * 4
for i in range(N):
  if S[i] == "P" and PWGY[0] == 0:
    PWGY[0] = 1
  elif S[i] == "W" and PWGY[1] == 0:
    PWGY[1] = 1
  elif S[i] == "G" and PWGY[2] == 0:
    PWGY[2] = 1
  elif S[i] == "Y" and PWGY[3] == 0:
    PWGY[3] = 1

print("Four" if sum(PWGY) == 4 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 = list(input().split())


chardict = dict(P = 0, W = 0, G = 0, Y = 0)


for i in range(n):
    chardict[s[i]] = chardict[s[i]] + 1

zcnt = 0
for k in chardict.keys():
    if chardict[k] == 0:
        zcnt = zcnt + 1

ans = ""
if zcnt == 0:
    ans = 'Four'
elif zcnt == 1:
    ans = 'Three'


print(ans)

Solution (Python):
def main():
    N = int(input())
    A = {i for i in input().split()}
    if "Y" in A:
        print("Four")
    else:
        print("Three")


if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):
N = int(input())
S = input().split()
 
S.sort()
 
if S[-1] == "Y":
  print("Four")
else:
  print("Three")

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

Solution (Python):
from collections import Counter
N = input()
s = input().split()
c = Counter(s)
if len(c) == 4:
    print("Four")
else:
    print("Three")