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

N = int(input())
S = list(input().split())
y = 0
for i in range(N):
	if S[i] == "Y":
		y = 1
if 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):
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)

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)

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)

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

Verdicts: Runtime Error

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 = set()
for i in range(N):
   A.add(input())
if len(A) == 3:
   print(“Three”)
else:
   print(“Four”)

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

N = int(input())
A = set(input().split())
if len(A) == 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=list(map(str,input().split()))
count=0
for i in range(n):
  if 'Y' in s[i]:
    count+=1
if count==1:
  print('Four')
else:
  print('Three')
  

n=int(input())
s=list(map(str,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 = 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")

N = int(input())
S = list(input().split())
ind = 0
for i in range(N):
    if S[i]=="Y":
        ind = 1
        break
if ind==1:
    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())
list = list(map(int, input().split()))

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

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

if "Y" in list:
    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 = map(str,input().split())
if s in 'Y':
  print('Four')
else:
  print('Three')

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

n = int(input())
s = map(str,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())
s = [str(x) for x in input().split()]
if set(s) == 3:
    print('Three')
else:
    print('four')


n = int(input())
s = [str(x) for x in input().split()]
if len(set(s)) == 3:
    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):
input();print("Four"if len(Set(input().split()))>3 else"Three")

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

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

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

for i in range(len(S)-1):
    if S[i] == 'Y':
        print("Four")
        exit()
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())
lis=list(map(int,input().split()))
if "Y" in lis:
  print("Four")
else:
  print("Three")

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


n=int(input())
lis=list(map(str,input().split()))
if "Y" in lis:
  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())
s = [str(i) for i in input().split()]

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

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)

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

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


if __name__ == '__main__':
    print(abc089_b())


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):
Row = int(input())
a = list(map(str,input().split(" ")))
print(len(set(a)))

int(input())
b = ["One","Two","Three","Four"]
a = list(map(str,input().split(" ")))
print(b[len(set(a))-1])

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 = input().split()
print(len(set(c)))

n = int(input())
c = input().split()
ans = len(set(c))
if ans == 3:
    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())
arare = input().split()
print(arare)
y = 0
for i in range(len(arare)):
  if arare[i] == "Y":
    y += 1
    break
if y == 1:
  print("Four")
else:
  print("Three")


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

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


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


Verdicts: Wrong Answer

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(map(str,input().split()))
for i in range(n):
  if s[i]=="Y":
    print("FOUR")
    exit()
print("Three")

n=int(input())
s=list(map(str,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())
l=[map(int,input().split())]

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

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

for i in range (n):
  if l[i]=='Y':
    print('Four')
    exit()
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()
print(len(set(input().split())))      



_ = input()
print('Four' if len(set(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())
l=list(map(int,input().split()))
print('Four' if 'Y' in l else 'Three')

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

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

N=int(input())
arare=list(input())
if 'Y' in arare:
  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())
fukuro = list(map(str,input().split()))

types = 'Three'
for i in range(len(fukuro)):
  if fukuro[i] == 'Y':
    tyeps = 'Four'
    break
print(types)

n = int(input())
fukuro = list(map(str,input().split()))
types = 'Three'
for i in range(len(fukuro)):
  if fukuro[i] == 'Y':
    types = 'Four'
    break
print(types)

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

n=input()
if "Y" in input():
  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(int,input().split()))

if set(s) <= 3:
  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

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

N = int(input())

if "Y" in input():
  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 = set(list(input().split()))

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

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):
_=input();s=list(map(int, input().split()));print("TFhoruere"["Y"in s::2])

_=input();s=input().split();print("TFhoruere"["Y"in s::2])

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):
i = int(input())
l = list(map(int,input().split()))
print("Four" if l.count("Y")>0 else "Three")

i = int(input())
l = input().split()
print("Four" if l.count("Y")>0 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())
S = []
for i in range(N):
    S.append(input())

COUNT = S.count("Y")

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

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

COUNT = S.count("Y")

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


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

COUNT = S.count("Y")

if COUNT > 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):
n=int(input())
a = input().split(' ')
a = set(list(a))
print(len(a))

n=int(input())
a = input().split(' ')
a = set(list(a))
x=len(a)
if x == 3:
    print('Three')
elif  x == 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):
input()
s = set(input().split())
print(len(s))


input()
s = set(input().split())

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

N=int(input())
S=input().split()
if len(set(S))==3:
  print("Three")
elif len(set(S))==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):
n = int(input())
k=[]
for i in range(n):
    k.append(input())
p = set(k)
if len(p) == 3:
    print("Three")
else:
    print("Four")



a = int(input())
l = list(map(str,input().split()))

s = len(set(l))
if s == 3:
    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):
n = int(input())
s = [int(x) for x in input().split()]

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

print(res)


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

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

print(res)


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 = [i for i in input().split()]
s = set(s)
print('four') if len(s)==4 else print('Three')

n = int(input())
s = [i for i in input().split()]
s = set(s)
print('Four') if len(s)==4 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 = list(map(str,input().split()))

print(s)


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

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

print(s)

y_n = s.count('Y')

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

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


y_n = s.count('Y')

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

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 = list(input().split())

num = 0
l = []

for i in s:
  if i not in l:
    num += 1
  l.append(i)
print(num)

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

num = 0
l = []

for i in s:
  if i not in l:
    num += 1
  l.append(i)
if num == 3:
    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=input()
if 'Y' in S :
  print('Three')
else:
  print('Four')


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


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

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


Verdicts: Wrong Answer

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):
num = input()
l = []
l = input().split()
s = set(l)

print(len(s))

num = input()
l = []
l = input().split()
s = set(l)

len = len(s)
if len == 3:
    print('Three')
if len == 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 = input()
s = list(map(int, input().split()))
if "Y" in s:
  print("Four")
else:
  print("Three")

from collections import Counter
n = int(input())
S = list(input().split())
cS = Counter(S).keys()
if "Y" in cS or len(cS) == 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())
colors = list(map(int, input().split()))
if len(set(colors)) == 3:
  print('Three')
else:
  print('Four')

N = int(input())
colors = list(input().split())
if len(set(colors)) == 3:
    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):
input()
print(["No","Yes"]["Y" in input()])

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

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=list(input.split())
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):
N = int(input())
arare = input().split()

for i in range(N):
    if arare[i] == 'Y':
        print('Three')
        break
else:
    print('Four')

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

for i in range(N):
    if arare[i] == 'Y':
        print('Four')
        break
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):
S = list(input().split())
c = "kara"
if S == "Y":
	c = "Four"
else :
	c = "Three"
	
print(c)

n = int(input())
S = list(input().split())
c = "kara"
for i in range(n):
	if S[i] == "Y":
		c = "Four"
	else :
		c = "Three"
	
print(c)

n = int(input())
S = list(input().split())
c = "Three"
for i in range(n):
	if S[i] == "Y":
		c = "Four"

print(c)

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=input()
s={str(x) for x in input().split()}
print(len(s))

n=input()
s={str(x) for x in input().split()}
if len(s) == 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):
n = int(input())
s = list(map(int, input().split()))
print("Four" if "Y" in s else "Three")

n = int(input())
s = list(input().split())
print("Four" if "Y" in s 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):
x = input().split(" ")
t = True
for i in x:
    if i == 'Y':
        t = False

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

x = input().split(" ")
t = True
for i in x:
    if i == 'Y':
        t = False
        continue

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

y = input()
x = input().split(" ")
t = True
for i in x:
    if i == 'Y':
        t = False
        continue

if t:
    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):
# -*- coding: utf-8 -*-

N = input()

S = raw_input().split()

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

# -*- coding: utf-8 -*-

N = input()

S = raw_input().split()

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

# -*- coding: utf-8 -*-

N = input()

S = 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())
S = list(map(int, 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

Accepted