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:
from collections import Counter
N = int(input())
c = Counter(input().split())
if len(c) == 3:
  print('Three')
else:
  print('Four')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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


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

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


print(main())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

array = input().split()

print("Four" if "Y" in array else "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())
j = input()
if "P" in j and "Y" in j and "G" in j and "W" in j:
    print("Four")
else:
    print("Three")

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter

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

Submission status: Runtime Error

Solution code:
n=int(input())
k=[]
for i in range(n):
    k.append(input())
k.remove(' ')
s=len(set(k))
if s==4:
    print('Four')
else:
    print('Three')

Submission status: Runtime Error

Solution code:
n=int(input())
k=[]
for i in range(n):
    d = str(input())
    k.append(d)
s=len(set(k))
if s==4:
    print('Four')
else:
    print('Three')

Submission status: Runtime Error

Solution code:
n=int(input())
k=[]
for i in range(n):
    d = input()
    k.append(d)
print(len(set(k)))

Submission status: Runtime Error

Solution code:
n = int(input())
x = sorted(map(int,input().split()))
x.reverse()
a = 0
b = 0
for i in range(n):
    if i%2==0:
        a+=x[i]
    else:
        b+=x[i]
print(a-b)

Submission status: Runtime Error

Solution code:
n = int(input())
x = list(reversed(sorted(map(int,input().split()))))
a = 0
b = 0
for i in range(n):
    if i%2==0:
        a+=x[i]
    else:
        b+=x[i]
print(a-b)

Submission status: Runtime Error

Solution code:
n,*s=map(int,open(0).read().split())
print('TFhoruere'[len(set(s))==4::2])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i = int(input())
l = list(map(int,input().split()))
print("Four" if l.count("Y")>0 else "Three")

Submission status: Runtime Error

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

sets = set(lists)
ans = len(sets)

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(str, input().split()))
counter=0
if 'P', 'W', 'G', 'Y' in A:
  print('Four')
else:
  print('Three')

Submission status: Runtime Error

Solution code:
N = int(input())
D = [input() for _ in range(N)]
print('Four' if len(set(D))==4 else 'Three')

Submission status: Runtime Error

Solution code:
N = int(input())
List = list(map(int, input().split()))
s_l = set(List)
if len(s_l) == 3:
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
A = [i for i in input().split(' ')]
syurui = ['P','W','G','Y']
ans = [0]*4
for i,s in enumerate(A):
    j = syurui.index(s)
    ans[j] += 1

num = np.count_nonzero(ans)
if num == 3:
    print('Three')
elif num == 4:
    print('Four')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(input().split()))
p=False
if 'Y' in l:
  p=True
if p==True:
  print("FOUR")
else:
  print("THREE")

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(input().split()))
p=False
for i in range(len(l)):
  if l[i]=='Y':
    p=True
if p==True:
  print("FOUR")
else:
  print("THREE")

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(input().split()))
p=0
for i in range(len(l)):
  if l[i]=='Y':
    p=1
if p==1:
  print("FOUR")
else:
  print("THREE")

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(int,input().split()))
p=False
for i in range(len(l)):
  if l[i]=='Y':
    p=True
if p==True:
  print("FOUR")
else:
  print("THREE")

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(int,input().split()))
p=0
for i in range(len(l)):
  if l[i]=='Y':
    p=1
if p==1:
  print("FOUR")
else:
  print("THREE")

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(int,input().split()))
p=0
w=0
g=0
y=0
for i in range(len(l)):
  if l[i]=='P':
    p=1
  elif l[i]=='G':
    g=1
  elif l[i]=='Y':
    y=1
  else:
    w=1 
print(p+w+g+y)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N=int(input())
S=list(map(string, input().slipt()))

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

Submission status: Runtime Error

Solution code:
N=int(input())
S=list(map(int, input().split()))
X=set()
for s in S:
  X.add(s)
  
if len(X)==3:
  print('Three')
else:
  print('Four')

Submission status: Runtime Error

Solution code:
_ = input()
*S, = map(int, input().split())
l = len(set(S))
if l == 4:
    print("Four")
else:
    print("Three")

Submission status: Runtime Error

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

s = [0]*4
N = i()
S = l()
for i in range(N):
    if S[i] == 'P':
        s[0] = 1
    if S[i] == 'W':
        s[1] = 1
    if S[i] == 'G':
        s[2] = 1
    if S[i] == 'Y':
        s[3] = 1
print(sum(s))

Submission status: Runtime Error

Solution code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

s = [0]*4
N = i()
S = l()
for i in range(N):
    if S[i] == 'P':
        s[0] = 1
    if S[i] == 'W':
        s[1] = 1
    if S[i] == 'G':
        s[2] = 1
    if S[i] == 'Y'
        s[3] = 1
print(sum(s))

Submission status: Runtime Error

Solution code:
n=int(input())
lis=list(map(int,input().split()))
ans=0
for i in range(n):
  if i == "P":
    ans=1
print(["Three","Four"][ans])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(len(set(s)))

Submission status: Runtime Error

Solution code:
input()
A=map(str,input().split())
if P in A and W in A and Y in A and G in A:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
arare = input().split()
y = 0
for i in arare:
  if arare[i] == "Y":
    y += 1
    break
if y == 1:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

Solution code:
N = int(input())
arare = input().split()
y = 0
for i in arare:
  if arere[i] == "Y":
    y += 1
    break
if y == 1:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
b=set(a)
if len(b)==3:
  print('Three')
if len(b)==4:
  print('Four')

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
b=set(a)
if len(b)==3:
  print('Three')
if len(b)==4:
  print('Four)

Submission status: Runtime Error

Solution code:
_=input();s=list(map(int, input().split()));print("TFhoruere"["Y"in s::2])

Submission status: Runtime Error

Solution code:
N = int(input())
S = map(input().split())
flag = 0
for i in range(N):
  if S[i] == "Y":
    flag += 1
if flag > 0:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

Solution code:
N = int(input())
flag = 0
for i in range(N):
  S = input()
  if S == "Y":
    flag += 1
if flag > 0:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

Solution code:
n=int(input())
l=[map(int,input().split())]

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

Submission status: Runtime Error

Solution code:
n=int(input())

a=list(input.split())

if 'Y' in a:
    print('Four')

else:
    print('Three')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
_ = input()
A = list(map(int,input().split()))
if 'Y' in A:
  print('Four')
else:
  print('Three')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
    n = int(input())
    S = list(map(int,input().split()))

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


if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# region header
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
# endregion
N = ri()
S = list(Counter(ri_()))
print('Three' if len(S) == 3 else 'Four')

Submission status: Runtime Error

Solution code:
n=int(input())
dic={}.fromkeys(map(str,input().split()))
if len(dic)==3:
  print("Three")
if len(dic)==4::
  print("Four")

Submission status: Runtime Error

Solution code:
N = int(input())
number = "Three"
S = input().split()
for i in range(N):
  If S[i] == "Y":
    number = "Four"
    break

print(number)

Submission status: Runtime Error

Solution code:
N = int(input())
n = "Three"
S = input().split()
for i in range(N):
  If S[i+1] == "Y":
    n = "Four"
    break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
n = "Three"
S = input().split()
for i in range(N):
  If S[i] == "Y":
    n = "Four"
    break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
n = "Three"

for i in range(N):
  S = input().split()
  If S == "Y":
    n = "Four"
    break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
n = Three

for i in (N):
  S = input().split()
  If S == "Y":
    n = "Four"
    break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
n = "Three"

for i in (N):
  S = input().split()
  If S == "Y":
    n = "Four"
    break
  if S != "Y":
    continue
print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
n = "Three"

for i in (N):
  S = input().split()
  If S == "Y":
    n = "Four"
    break
print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
n = "three"

for i in (N):
  S = input().split()
  If S == "Y":
    n = "four"
    break
print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
n = "three"

for i in (N):
  S = input().split()
  If S == Y:
    n = "four"
    break
print(n)

Submission status: Runtime Error

Solution code:
# ABC089B

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

Submission status: Runtime Error

Solution code:
# ABC089B

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<char> S(N);
  for (int i = 0; i < N; i++) {
    cin >> S.at(i);
  }
  bool four = false;
  for (int i = 0; i < N; i++) {
    if (S.at(i) == 'Y') four = true;
  }
  if (four) cout << "Four" << endl;
  else cout << "Three" << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if "Y" in c:
    print("four")
else:
    print("three")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print("TFhoruere"[len(set(map(int, open(0).read().split())))-4::2])

Submission status: Runtime Error

Solution code:
print("TFhoruere"[len(set(map(int, open(0).read().split())))-3::2])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
print("Four" if sum(["Y" if in input().split() for i in range(n)])!=0 else "Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = int(input())
data = input().rstrip().split(' ')
count = 0
if data.count('P') > 0 or data.count('W') > 0 or data.count('G') > 0 or data.count('Y') > 0:
  count++

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

Submission status: Runtime Error

Solution code:
num = int(input())
data = input().rstrip().split(' ')
count = 0
if data.count('P') > 0 or data.count('W') > 0 or data.count('G') > 0 or data.count('Y') > 0:
  count++
print(count)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import strutils;var n,a=stdin.readline.split;echo if a.contains("Y"):"Four"else:"Three"

Submission status: Runtime Error

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

S.sort()

if S[-1] == "Y":
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
n = int(input())

for i in range(n):
  c =input()
  if c=='Y':
    print('Four')
    sys.exit()
else:
  print('Three')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
print("Yes" if a <= c <= b else "No")

Submission status: Runtime Error

Solution code:
n = int(input())

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

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

Submission status: Runtime Error

Solution code:
_ = input()
a_L = list(map(int,input().split()))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from collections import Counter
N=input()
c = Counter(list(map(int,input().split())))
if len(c)==4:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

lst1 = list(set(lst1))

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip().split()
from collections import Counter
c = Counter(S)
if len(c.keys) == 4:
    print("Four")
else:
    print("Three")

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip().split()
from collections import Counter
c = Counter(s)
if len(c.keys) == 4:
    print("Four")
else:
    print("Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import random
n = int(input())
l = ["P", "W", "G", "Y"]

b = random.choices(l,k=n)
if(len(set(b))==3):
    print("Three")
elif(len(set(b))==4):
    print("Four")

Submission status: Runtime Error

Solution code:
import random
#import collections

n = int(input())
list = ["P", "W", "G", "Y"]
#r = [random.randrange(0,n-1,1) for i in range(n)]
b = random.choices(list,k=n)
#a = collections.Counter(b)
if(len(set(b))==3):
    print("Three")
elif(len(set(b))==4):
    print("Four")

Submission status: Runtime Error

Solution code:
import random
import collections

n = int(input())
list = ["P", "W", "G", "Y"]
#r = [random.randrange(0,n-1,1) for i in range(n)]
b = random.choices(list,k=n)
#a = collections.Counter(b)
if(len(set(b))==3):
    print("Three")
elif(len(set(b))==4):
    print("Four")

Submission status: Runtime Error

Solution code:
import random
import collections

n = int(input())
list = ["P", "W", "G", "Y"]
#r = [random.randrange(0,n-1,1) for i in range(n)]
b = random.choices(list,k=n)
a = collections.Counter(b)
if(len(a)==3):
    print("Three")
elif(len(a)==4):
    print("Four")

Submission status: Runtime Error

Solution code:
import random
import collections

n = int(input())
list = ["P", "W", "G", "Y"]
#r = [random.randrange(0,n-1,1) for i in range(n)]
b = random.choices(list,k=n)
#print(b)
a = collections.Counter(b)
#print(d)
if(len(a)==3):
    print("Three")
    
elif(len(a)==4):
    print("Four")

Submission status: Runtime Error

Solution code:
import random
import collections

n = int(input())
list = ["P", "W", "G", "Y"]
#r = [random.randrange(0,n-1,1) for i in range(n)]
b = random.choices(list,k=n)
#print(b)
a = collections.Counter(b)
d = len(a)
#print(d)
if(d==3):
    print("Three")
elif(d==4):
    print("Four")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input()
print('Four' if len(set(map(int, input().split()))) else 'Three')

Submission status: Runtime Error

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

for i in range(n):
    if s[i] == "Y":
        print("four")
        break
        elif i == n-1:
            print("Tree")

Submission status: Runtime Error

Solution code:
n = int(input())
li = []
count =0

liste = input()
li = liste.split(" ")[:n]
temp = []

for i in range(len(li)):
    if li[i] not in temp:
        temp.append(li[i])
        count +=1

if count==3:
    ptint("Three")
else:
    print("Four")

Submission status: Runtime Error

Solution code:
N=int(input())

for i in range(0,N):
    s1=input()
    s2='PWGY'
    c=0
    s1=set(s1)
    for j in s1:
        if j in s2:
            c+=1
    
    #o=['One','Two','Three','Four']
    #print(o[c-1])
    if c==1:
        print("One")
    elif c==2:
        print("Two")
    elif c==3:
        print("Three")
    else:
        print("Four")

Submission status: Runtime Error

Solution code:
N=int(input())

for i in range(0,N):
    s1=input()
    s2='PWGY'
    c=0
    s1=set(s1)
    for j in s1:
        if j in s2:
            c+=1
    
    o=['One','Two','Three','Four']
    print(o[c-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

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

print(len(s))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
ans = False
for i in range(N):
    s = input()
    if(s == "Y"):
        ans = True
if(ans):
    print("Four")
else:
    print("Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main(n, s):
    a = set(s)

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


if __name__ == "__main__":
    n = int(input())
    s = list(map(int, input().split()))

    main(n, s)

Submission status: Runtime Error

Solution code:
# B
n = int(input())
sli = list(map(int, input().spllit()))
for s in sli:
    if s == 'Y':
        print('Four')
        exit()

print('Three')

Submission status: Runtime Error

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

Ans = "Three"
for s in S:
    if s=="Y":
        Ans = "Four"
        break

print(Ans)

Submission status: Runtime Error

Solution code:
N=int(input())
Flag=False
for i in range(N):
  C=input()
  if C=='Y':
    Flag=True
    
print('Four' if Flag else 'Three')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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