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: Runtime Error

Solution code:
N=int(input())
S=list(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()))
ind = 0
for i in range(N):
    if S[i]=="Y":
        ind = 1
        break
if ind==1:
    print("Four")
else:
    print("three")

Submission status: Runtime Error

Solution code:
n=input()
a=input().split()
print(("Three","Four")[len(set(a))==4]

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for x in S:
  if x is 'Y'
  	print('Four')
    exit()
  else:
    print('Three')

Submission status: Runtime Error

Solution code:
N = int(input())
v = []
for i in range(N):
    s = input()
    if !(s in v):
        v.append(s);

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(map(int, input().split()))
ans = "Three"
for i in range(n):
    if s[i] == "Y":
        ans = "Four"
        break
print(ans)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N=int(input())
S=[map(str,input().split()) for i in range(N)]
print("Four" if len(set(S))==4 else "Three")

Submission status: Runtime Error

Solution code:
N=int(input())
S=[map(int,input().split()) for i in range(N)]
print("Four" if len(set(S))==4 else "Three")

Submission status: Runtime Error

Solution code:
// space 区切りの文字を入力として、Yが存在すれば、Four, else Threeを出力

#include <iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  char s[n]; // 配列の初期化はs[n] n：要素数
  int ans = 0; // if ans == 0, Three
  for (int i=0;i < n ;i++){
    cin >> s[i];
    //cout << s[i];
    //charで比較するときは''にする、""だと文字列
    if ( s[i] == 'Y' ){
      ans = 1;
      break;
    }
  }
  if ( ans == 0){
    cout << "Three" << endl;
  }
  else{
    cout << "Four" << endl;
  }
}

Submission status: Runtime Error

Solution code:


N = int(input())

Tmp = []
Tmp = input().rstrip().split(' ')

nAns = [ 0 for i in range(4)]
Flag = 0
for i in range(N):
  S = Tmo[i]
  if S=='G':
    Flag = 1

if Flag==1:
  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")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Your code here!
n = int(input())
l = list(map(int, input().split()))
if len(set(l)) == 3:
    print('Three')
else:
    print('Four')

Submission status: Runtime Error

Solution code:
i=open(0).read().split()[1:]
print(["Three","Four"][if "Y" in i])

Submission status: Runtime Error

Solution code:
N = int(input())
arares = list(map(int, input().split()))
four = False
for arare in arares:
  if arare == 'Y':
    four = True
    break
if four:
  print('Four')
else:
  print('Three')

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    n = II()
    print(n//3)
    return

#B
def B():
    n = II()
    s = LS()
    print(["Three", "Four"][len(set(s)) - 3])
    return

#C
def C():
    return

#D
def D():
    return

#Solve
if __name__ == '__main__':
    B()

Submission status: Runtime Error

Solution code:
N = int(input())
Alist = list(map(int, input().split()))
 
a = set(Alist)
if len(a) == 3:
    print('THREE')
else:
    print('FOUR')

Submission status: Runtime Error

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

a = set(Alist)
print(len(a))

Submission status: Runtime Error

Solution code:
n = input()
n = int(n)
s = [0] * n
for i in s:
  s[i] = input()
if s.count("P") + s.count("W") + s.count("G") + s.count("Y") == 4:
  print("four")
else:
  print("three")

Submission status: Runtime Error

Solution code:
n=int(input())
a=[]
for i in range(0,n):
  a.append(input().split())
if 'Y' in a:
  print('Four')
else:
  print('Three')

Submission status: Runtime Error

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

for i in range(len(S-1)):
    if S[i] == 'Y':
        print("Four")
        break
print("Three")

Submission status: Runtime Error

Solution code:
# 入力
N=int(input())
l=list(map(int,input().split()))

ln=len(set(l))

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

Submission status: Runtime Error

Solution code:
n=int(input())

s=[]

for i in range(n):
  i=input()
  s.append(i)

k=set(s)

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

Submission status: Runtime Error

Solution code:
N = int(input())
arare = list(map(int, input().rstrip().split()))
count = {"P": 0, "W": 0, "G": 0, "Y": 0}
for i in range(N):
  cur = arare[i]
  if cur == "P":
    count["P"] += 1
  elif cur == "W":
    count["W"] += 1
  elif cur == "G":
    count["G"] += 1
  else:
    count["Y"] += 1
print("Four" if count["Y"] >= 1 else "Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int main() {
	int n, Yellow_exists, i;
	char str[101];
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%c", &str[i]);
	}

	Yellow_exists = 0;
	for (i = 0; i < n; i++) {
		if (str[i] == 'Y') {
			Yellow_exists = 1;
			break;
		}
	}

	printf(Yellow_exists ? "Four" : "Three");
	return 0;
}

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(int,input().split()))
print('Four' if 'Y' in l 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()))

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

Submission status: Runtime Error

Solution code:
n=int(input())
arr=[input() for _ in range(n)]
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: Runtime Error

Solution code:
N = int(input())
s = map(str,input().split())
a = []
for i in range(N):
    a[s[i]] += 1
ans = 0
if a['P'] > 0:
    ans += 1
if a['W'] > 0:
    ans += 1
if a['G'] > 0:
    ans += 1
if a['Y'] > 0:
    ans += 1
if ans == 3:
    print("Three")
else :
    print("Four")

Submission status: Runtime Error

Solution code:
N = int(input())
s = set()
for i in range(N+1):
    a = input()
    s.add(a)
if(len(s) == 3):
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
s = set()
for i in range(N):
    a = input()
    s.add(a)
print(len(s))

Submission status: Runtime Error

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(n)==4else"Three")

Submission status: Runtime Error

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

count = 0
for i in range(N):
  if S[i] == "Y":
    count += 1

if count <= 1:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = [input().split() for _ in range(N)]
res = len(set(S))
print("Three" if res == 3 else "Four")

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    int N; cin >> N;
    vector<char> S(N);
    int cnt = 0;
    for(int i = 0; i < N; i++)
    {
        cin >> S.at(i);
        if(S.at(i) == 'Y')
        {
            cnt = 1;
            break;
        }
    }
    if(cnt == 0)
    {
        cout << "Three" << endl;
    }
    else
    {
        cout << "Four" << endl;
    }
}

Submission status: Runtime Error

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

print(s)


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

Submission status: Runtime Error

Solution code:
N = int(input())
Ss = set([input() for s in range(N)])
if len(Ss)==3:
    print("Three")
else:
    print("Four")

Submission status: Runtime Error

Solution code:
N = int(input())

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

color = [0, 0, 0, 0]

for s in S:
  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) == 3):
  print(Three)
else:
  print(Four)

Submission status: Runtime Error

Solution code:
n=int(input())
p=0
w=0
g=0
y=0
for l in range (n):
	a=input()
	if a==("P"):
		p=1
	elif a==("W"):
		w=1
	elif a==("G"):
		g=1
	else:
		y=1

b=p+w+g+y
if b==4:
	print("Four")
elif b==3:
	print("Three")
else:
	print("odher")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

ans = "Three"

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
dict={}

for i in range(N):
	dict[input()]=1

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

Submission status: Runtime Error

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

if "Y" in list:
    print("Four")
else:
    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'
print(ans)

Submission status: Runtime Error

Solution code:
n = input()
print(len(set(input().split()))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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


def main():
    """Function."""
    n = int(input())
    s = list(map(str, input().split()))

    check = set()
    for i in range(n):
        check.append(s[i])

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


if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
a = []
for i in range(1,N+1):
  a.append(input())
if a.count("Y") == 0:
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
a = []
for i in range(1,N+1):
  a.append(input())
  
if a.count("Y") == 0:
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

Solution code:
N = int(input())
a = [input() for i in range(1:N)]
if a.count("Y") == 0:
  print("Three")
else:
  print("Four")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = [str(i) for i in input().split()]

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(map(str,input().split()))
p = S.count("P")
w = S.count("W")
g = S.count("G")
y = S>count("Y")
ans = p+w+g+y
if ans == 3 :
    print("Three")
else :
    print("Four")

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(map(int,input().split()))
p = S.count("P")
w = S.count("W")
g = S.count("G")
y = S>count("Y")
ans = p+w+g+y
if ans == 3 :
    print("Three")
else :
    print("Four")

Submission status: Runtime Error

Solution code:
N = int(input())
S_list = list(map(str, input().split( )))
import collections
S_dict = collections.Counter(S_list)
S_val, S_count=zip(*S_dict.most_common())
ans_number = len(S_val)
ans = 'Three'
if ans_number = 4:
  ans = 'Four'
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
sl = [i for i in -input().split()]
print(["Three", "Four"][len(set(sl)) == 4])

Submission status: Runtime Error

Solution code:
n = int(input())
sl = [i for i in input().split()]
print(["Three", "Four"][len(set(sl)) == 4]

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(input())
flag = False
for i in range(n):
  if a[i] == "Y":
    flag = True

if flag == Ture:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(map(int, input().split()))
for i in range(n):
  if s[i] == "Y":
    print("Four")
    exit()
print("Three")

Submission status: Runtime Error

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

for si in s:
  if si == "Y":
    print("Four")
    break
else:
  print("Three")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
#89b
n=int(input())
a=list(input())
a=set(a)
c=['P','W','G','Y']
if c-a==0:
    print('Four')
else:
    print('Three')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#!/usr/bin/python3

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


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

Submission status: Runtime Error

Solution code:
input();print("Four"if len(Set(input().split()))>3 else"Three")

Submission status: Runtime Error

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

COUNT = S.count("Y")

if COUNT > 0:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

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

COUNT = S.count("Y")

if COUNT > 0:
  print("Four")
else:
  print("Three")

Submission status: Runtime Error

Solution code:
N=int(input())
S=list(map(int,input().split()))
bucket=[]
for i in range(N):
    if S[i]=='P':
        bucket[0]+=1
    elif S[i]=='W':
        bucket[1]+=1
    elif S[i]=='G':
        bucket[2]+=1
    else:
        bucket[3]+=1
if 4 - bucket.count(0)==3:
    print('Three')
else:
    print('Four')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
flag = 'False'
N = int(input())
c = raw_input().split()
for i in range(0,N):
  if c[i] == 'Y':
    flag = 'True'
if flag:
  print('Four')
else:
  print('Three')

Submission status: Runtime Error

Solution code:
N = int(input())
flag = 'False'
for i in range(0,N):
  c = input()
  if c == 'Y':
    flag = 'True'
if flag:
  print('Four')
else:
  print('Three')

Submission status: Runtime Error

Solution code:
l = ['P','W','G','Y']
l_ = [0,0,0,0]

n = int(input)
s = list(map(int,input()))

for i in range(len(s)):
  if s[i] == 'P':
    l_[0] += 1
  elif s[i] == 'W':
    l_[1] += 1
  elif s[i] == 'G':
    l_[2] += 1
  else:
    l_[3] += 1
else:
  for i in range(4):
    if l_[i] == 0:
      print("Three")
      break
    else:
      print("Four")
      break

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

N = int(input())

S = list(map(input().split()))

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

else:
    print("three")

Submission status: Runtime Error

Solution code:
N = int(input())
s = list(map(input().split()))
print(len(set(s)))

Submission status: Runtime Error

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

else:
    print ("Three")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import re
import sys

if __name__ == '__main__':
    N = int(input())
    li = input().split()
    d = dict()
    for l in li:
        d[l] = 1
    print len(d)

Submission status: Runtime Error

Solution code:
N = int(input())
hina = []
for N in range(0,N):
    S = input()
    hina.append(S)

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

Submission status: Runtime Error

Solution code:
N = int(input())

ball_list = []

for i in range(N):
    ball_list.append(int(input()))

print(len(list(set(ball_list)))

Submission status: Runtime Error

Solution code:
N=int(input())
NCount = 0
while N =>0:
    NCount+= 1
    N -=3
print(NCount-1)

Submission status: Runtime Error

Solution code:
a = input().split()
if 'Y' in a:
    print(four)
else:
    print(three)

Submission status: Runtime Error

Solution code:
a = input().split()
if Y in a:
    print(4)
else:
    print(3)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#abc089b

n=int(raw_input())
s=map(str,raw_input().split())
ss=set(s)
cnt=len(ss)
1f cnt=3:
 print 'Three'
else:
 print 'Four'

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 個数の入力
N = input()
# スペース区切りの色の入力
S = raw_input().split()
# 出力
if "Y" in S:
	print('Four')
else:
	print('Three')

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 個数の入力
N = input()
# スペース区切りの色の入力
S = raw_input().split()
# 出力
if 'Y' in S:
	print('Four')
else:
	print('Three')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
ok = False
for i in range(n):
  t = input()
  if(t == 'Y'):
    ok = True
    break
    
if(ok):
  print('Four')
else:
  print('Three')

Submission status: Runtime Error

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

p,w,g,y = 0,0,0,0

for i in S:
    #print (i)
    if i == 'P':
        p+=1
    elif i == 'W':
        w+=1
    elif i == 'G':
        g+=1
    elif i == 'Y':
        y+=1

if p * w * g * y != 0:
    print('Four')
else:
    print('three')

Submission status: Runtime Error

Solution code:
N = input()
a = []
for i in range(N):
    a.append(input())
print a # [a1, a2, a3, ..., aN]

b = list(set(a))
If length(b) ==3 :
  print 3
elso :
  print 4

Submission status: Runtime Error

Solution code:
n = int(input())
lis = input().split()
count = 0
for i in range(n):
  if lis[i] == 'Y':
    print('Four')
    break
  else:
    if(count == n-1)
    print('Three')
    count++

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
S = raw_input().split()
b='three'
for i in S:
  if(i=='Y'):
    b='four'
print(b)

Submission status: Runtime Error

Solution code:
import sys

#N=sys.argv[1]
#te=sys.argv[2:]

N=raw_input()
te=raw_input()

flaglist=[]
for i in range(len(te)):
    if te[i]=="P" or te[i]=="p":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="W" or te[i]=="w":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="G" or te[i]=="g":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="Y" or te[i]=="y":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
            
if len(flaglist)==3:
    print("Three")
elif len(flaglist)==4:
    print("Four")

Submission status: Runtime Error

Solution code:
n = int(input())

hlist = input().split()

cnt = 0

for i in range(n):
        if hlist[i] == "Y":
                cnt += 1
if cnt > 0:
        print ('Four')
else:
        print ('Three')
~

Submission status: Runtime Error

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

N = input()
S = raw_input.split()
for i in range(N):
	if S[i] == 'Y':
		print('Four')
		N = -1
		break
if N == -1:
	print('Three')

Submission status: Runtime Error

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

N = input()
S = raw_input.split()
for i in range(N):
	if S[i] == 'Y':
		print('Four')
		N = -1
		break
if N == -1:print('Three')

Submission status: Runtime Error

Solution code:
import sys

N=sys.argv[1]
te=sys.argv[2:]

flaglist=[]
for i in range(len(te)):
    if te[i]=="P" or te[i]=="p":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="W" or te[i]=="w":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="G" or te[i]=="g":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
    if te[i]=="Y" or te[i]=="y":
        if te[i]  not in flaglist:
            flaglist.append(te[i])
            
if len(flaglist)==3:
    print("Three")
elif len(flaglist)==4:
    print("Four")

Submission status: Runtime Error

Solution code:
N = input()
S = input()
char_list = list(S.split(" "))
result = "Three"
for i in range(N):
    if char_list[i] == "Y":
        result = "Four"
print(result)

Submission status: Runtime Error

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

N = input()
S = raw_input.split()
for i in range(N)
	if S[i] == 'Y':
		print('Four')
		N = -1
		break
if N = -1:print('Three')

Submission status: Runtime Error

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

ans = "Three"

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

print(ans)

Submission status: Runtime Error

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

N = input()
S = raw_input.split()
For i in range(N)
	if S[i] == "Y":
		print "Four"
		N = -1
		break
if N = -1:print "Three"

Submission status: Runtime Error

Solution code:
from math import *

n = int(input())
s = input()
d = {'P': 0, 'W': 0, 'G': 0, 'Y': 0}
for x in range(len(s)):
  d[s[x]] += 1
print('Four' if all(map(lambda x: x > 0, d.values())) else 'Three')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = set()
for i in range(N):
   A.add(input())
if len(A) == 3:
   print(“Three”)
else:
   print(“Four”)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input()
print(len(set([input().split()]))

Submission status: Runtime Error

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

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

print(res)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = {}
n = int(input())
for i in range(n):
    a[input()] += 1
if len(a) == 3:
    print("Three")
else:
    print("Four")

Submission status: Runtime Error

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

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