TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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`.

Submission attempts (in order):
s = list(input().split())
print("Four" if len(set(s))==4 else "Three")

input();s = list(input().split())
print("Four" if len(set(s))==4 else "Three")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
import strutils;var n,a=stdin.readline.split;echo if a.contains("Y"):"Four"else:"Three"

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
input()
print('Four' if len(set(map(int, input().split()))) else 'Three')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a=input()
b=list(map(input().split()))
if "Y" in b:
  print("Four")
else:
  print("Three")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N=int(input())
S=list(map(string, input().slipt()))

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
#2019/10/15
N, *S = open(0).read().split()
print(len(set(S)))

#2019/10/15
N, *S = open(0).read().split()
print("Three" if len(set(S))==3 else "Four" )

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
int()
l=map(str,input().split())
print("Four" if len(set(l))==4 else "Three")

input()
l=map(str,input().split())
print("Four" if len(set(l))==4 else "Three")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
print(len(set(list(map(str,input().split())))))

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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]]):
    L.append(c[i])
if len(L)==4:
  print('Four')
else:
  print('Three')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a = input().split()
if 'Y' in a:
    print(4)
else:
    print(3)

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

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

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

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

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

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
input()
print(len(set(input().split())))

print(len(set(input().split())))

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n=int(input())
s=set(map(str,input().split()))
n=len(s)
if s==3:
  print("Three")
if s==4:
  print("Four")

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


Verdicts: Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
#89b
n=int(input())
a=list(set(input()))
print(a)
print('Four' if len(a)==5 else 'Three')

#89b
n=int(input())
a=list(set(input()))
print('Four' if len(a)==4 else 'Three')

#89b
n=int(input())
a=list(set(input()))
print(a)
print('Three' if len(a)==4 else 'Four')

#89b
n=int(input())
a=list(set(input()))
print(a)
print('Four' if len(a)==5 else 'Three')

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

#89b
n=int(input())
a=list(set(input()))
print('Three' if len(a)==4 else 'Four')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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`.

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

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

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

print(Ans)

# Python3 (3.4.3)
import sys
input = sys.stdin.readline

# -------------------------------------------------------------
# function
# -------------------------------------------------------------


# -------------------------------------------------------------
# main
# -------------------------------------------------------------
N = int(input())
S = input().rstrip()


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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
#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;
}

input()
a = input()
print("Four" if 'Y' in a else "Three")


Verdicts: Runtime Error

Accepted
Problem: 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`.

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

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

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

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

a = input()
b = list(input().split())
if 'Y' in b:
    print('Four')
else:
    print('Three')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n=int(input())

a=list(input.split())

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

else:
    print('Three')

n=int(input())

a=input().split()

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

else:
    print('Three')


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
_ = input()
*S, = map(int, input().split())
l = len(set(S))
if l == 4:
    print("Four")
else:
    print("Three")

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = input()
s = list(map(int, input().split()))

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


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

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):

N = int(input())

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

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

else:
    print("three")


N = int(input())

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

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

else:
    print("three")

N = int(input())

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

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

else:
    print("Three")

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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")



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



Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N = input()
    S = input().split()
if 'Y' in S:
    print('Four')
else:
    print('Three')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
s = input().split()

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N=int(input())
s=set(input())
print("Four" if len(s)==4 else "Three")


N=int(input())
s=set(input())
print("Four" if len(s)==5 else "Three")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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')


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

for c in Colors:
  dict[c]=1

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n=int(input())
a=list(map(int,input().split()))
b=set(a)
if len(b)==3:
  print('Three')
if len(b)==4:
  print('Four')


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

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
s = list(input().split)
if len(set(s)) == 3:
    print('Three')
else:
    print('Four')

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

print(len(set(s)))

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
S = [int(i) for i in input().split()]

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

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

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

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
N = int(input())
print('Four' if set(input().split()) == 4 else 'Three')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n=int(input())
C=list(map(int, input().split()))
c=set(C)
if len(c)==4:
  print('Four')
else:
  print('Three')

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n=int(input())
s=list(map(input().split()))
if s.count("Y")==0:
    print("Three")
else:
    print("Four")


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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
print("TFhoruere"[len(set(map(int, open(0).read().split())))-4::2])

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
s = input().split()
print(s)

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
import sys
n = int(input())
s = sys.stdin.readline().rstrip().split()
print('THREE' if len(set(s)) == 3 else 'FOUR')

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
input()
print("three" if len(set(map(str, input().split()))) == 3 else "four")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
n = int(input())
arare = input().split()
if arare.count("Y") > 0:
	print("FOUR")
else:
	print("THREE")

n = int(input())
arare = input().split()
if arare.count("Y") > 0:
	print("Four")
else:
	print("Three")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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')
~             

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
import sys
input = sys.stdin.readline

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

print(s)


flag = True

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

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

import sys
input = sys.stdin.readline

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

flag = True

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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")

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

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

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


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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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])

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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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")

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a = int(input())
b = input().split()
c = list(set(b))

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

a = int(input())
b = input().split()
c = list(set(b))

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
# ABC089B

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


# ABC089B

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


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


Verdicts: Runtime Error

Runtime Error

Accepted