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

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

def solve(string):
    n, *s = string.split()
    return "Three" if len(set(s)) == 3 else "Four"


if __name__ == '__main__':
    print(solve('\n'.join([input(), input()])))


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

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

n = int(input())
s = input()

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):
flag = 'False'
N = int(input())
c = raw_input().split()
for i in range(0,N):
  if c[i] == 'Y':
    flag = 'True'
if flag:
  print('Four')
else:
  print('Three')

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

flag = 0
N = int(input())
c = input().split()
for i in range(0,N):
  if c[i] == 'Y':
    flag = 1
if flag:
  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())
hina = []
for N in range(0,N):
    S = input()
    hina.append(S)

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

N = int(input())

hina = [S for S in input().split()]

if "Y" in hina:
    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()) 
print(len(set([i for i in input().split()])))

n = int(input()) 
if len(set([i for i in input().split()])) == 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):
a, b, c = map(int, input().split())
print("Yes" if a <= c <= b else "No")


n = int(input())
arare = set(input().split())
if len(arare) == 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())
Ss = set([input() for s in range(N)])
if len(Ss)==3:
    print("Three")
else:
    print("Four")

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

N = int(input())
An = set(input().split())
if len(An)==3:
    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):

# Editorial ver.
n = int(input())
lst = input().rstrip().split()
print(lst)
print("Four" if "Y" in lst else "Three")


# Editorial ver.
n = int(input())
lst = [input().rstrip().split()]
print("Three" if "Y" not in lst else "Four")


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


if __name__ == "__main__":
    main()

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):
ips = []
ips.append(input())
while True:
    try:
        ips.append(input())
    except (EOFError):
        break
num = int(ips[0])
hina = ips[1]
v = []
for i in range(num):
    if hina[i] not in v:
        v.append(hina[i])
if len(v) == 3:
    print("three")
elif len(v) == 4:
    print("four")

ips = []
ips.append(input())
while True:
    try:
        ips.append(input())
    except (EOFError):
        break
num = int(ips[0])
hina = ips[1]
v = []
for i in range(num):
    if hina[i] not in v:
        v.append(hina[i])
print(len(v))

ips = []
ips.append(input())
while True:
    try:
        ips.append(input())
    except (EOFError):
        break
num = int(ips[0])
hina = ips[1].split(" ")
v = []
for i in range(num):
    if hina[i] not in v:
        v.append(hina[i])
if len(v) == 3:
    print("Three")
elif len(v) == 4:
    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):
N=int(input())
S=list(map(int,input().split()))

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

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

M=set(S)
if len(M)==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())
li = []
count =0

liste = [x for x in input().split()]
temp = []

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


print(count)


n = int(input())
li = []
count =0

liste = [x for x in input().split()]
temp = []

for i in range(len(liste)):
    if liste[i] not in temp:
        temp.append(liste[i])

if len(temp)==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=list(map(int,input().split()))

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

n=int(input())
a=input().split()
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())
S=list(map(int, input().split()))
X=set()
for s in S:
  X.add(s)
  
if len(X)==3:
  print('Three')
else:
  print('Four')

N=int(input())
S=list(input().split())
X=set()
for s in S:
  X.add(s)
  
if len(X)==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 = list(map(int, input().split()))

color = [0, 0, 0, 0]

for s in S:
  if (s == "P"):
    color[0] += 1
  elif (s == "G"):
    color[1] += 1
  elif (s == "W"):
    color[2] += 1
  else:
    color[3] += 1
  
if (color.count(0) == 3):
  print(Three)
else:
  print(Four)

N = int(input())
 
S = list(map(str, input().split()))
 
color = [0, 0, 0, 0]
 
for s in S:
  if (color.count(0) == 0):
    print("Four")
    break
  
  if (s == "P"):
    color[0] += 1
  elif (s == "G"):
    color[1] += 1
  elif (s == "W"):
    color[2] += 1
  else:
    color[3] += 1
  
if (color.count(0) == 1):
  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())
ans = "Four" if 'Y' in list(map(int, input().split())) else "Three"
print(ans)


N = int(input())
ans = "Four" if 'Y' in list(input().split()) else "Three"
print(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())
s = list(input().split())
if any(i === "Y" for i in s):
  print("Four")
else:
  print("Three")

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

_ = input()
A = list(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())
S_list = list(map(str, input().split( )))
import collections
S_dict = collections.Counter(S_list)
S_val, S_count=zip(*S_dict.most_common())
ans = len(S_val)
print(ans)

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

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

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


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

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

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

N = int(input())
List = list(map(str, input().split()))
s_l = set(List)
if len(s_l) == 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 = [s for _ in input().split()]

ans = "Three"

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


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

ans = "Three"

for s in S:   
    if s == "Y":
        ans = "Four"
        break
print(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):
# -*- coding: utf-8 -*-

input()

inputs = input().split()

print(len(set(inputs)))

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

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):
i=open(0).read().split()[1:]
print(["Three","Four"][if "Y" in i])

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

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):
zenbu = int(input())
mame = [i for i in input().split()]

kiiro = 0

for mame in range(zenbu):
    if mame == 'Y':
       kiiro = 1
       break

if kiiro == 1:
    print('Four')
else:
    print('Three')

zenbu = int(input())
mame = [i for i in input().split()]

kiiro = 0

for moji in mame:
    if moji == 'Y':
       kiiro = 1
       break

if kiiro == 1:
    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())
lists = list(map(int, input().split()))

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

print(ans)

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

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

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

n=input()
print("Four" if len(set(map(str,input().split())))==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):
N = int(input())
n = "Three"
S = input().split()
for i in range(N):
  If S[i+1] == "Y":
    n = "Four"
    break

print(n)
    

  

N = int(input())
n = "three"

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

  

N = int(input())
n = "Three"

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

print(n)
    

  

N = int(input())
n = "three"

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

  

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

print(n)
    

  

N = int(input())
n = Three

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

print(n)
    

  

N = int(input())
n = "Three"

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

  

N = int(input())
n = "Three"

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

  

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

print(number)
    

  

N = int(input())
n = "Three"

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

print(n)
    

  

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

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

print(number)
    

  

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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())
S = [int(x) for x in input().split()]
if 'Y' in S:
  print("Four")
else:
  print("Three")
  

N = int(input())
S = [x for x in 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(input().split())

S = set(S)
print(len(S))

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

S = set(S)

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


n=int(input())
s=list(input().split())
s=set(s)
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):
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):
# B
n = int(input())
sli = list(map(int, input().spllit()))
for s in sli:
    if s == 'Y':
        print('Four')
        exit()

print('Three')

# B
n = int(input())
sli = list(input().split())
for s in sli:
    if s == '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())
li = []
for i in range(n):
    li.append(i)
print(len(set(li)))

n = int(input())
li = list(input().split())
print(len(set(li)))

n = int(input())
li = list(input().split())
di = {0:"One",1:"One",2:"Two",3:"Three",4:"Four"}
print(di[len(set(li))])

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())
arr=[input() for _ in range(n)]
count=0
if arr.count('P')!=0:
  count+=1
if arr.count('Y')!=0:
  count+=1
if arr.count('W')!=0:
  count+=1
if arr.count('G')!=0:
  count+=1
if count==3:
  print('Three')
if count==4:
  print('Four')

n=int(input())
arr=list(map(str,input().split()))
count=0
if arr.count('P')!=0:
  count+=1
if arr.count('Y')!=0:
  count+=1
if arr.count('W')!=0:
  count+=1
if arr.count('G')!=0:
  count+=1
if count==3:
  print('Three')
if count==4:
  print('Four')

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):
# coding: utf-8
# Your code here!
n = int(input())
l = list(map(int, input().split()))
if len(set(l)) == 3:
    print('Three')
else:
    print('Four')


# coding: utf-8
# Your code here!
n = int(input())
l = list(map(str, input().split()))
if len(set(l)) == 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(i) for i in range(S)]
if "Y" in S:
  print("Four")
else:
  print("Three")

N = int(input())
S = [int(i) for i in range(N)]
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

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

S.sort()

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

N = int(input())
S = input().split()
 
S.sort()
 
if S[-1] == "Y":
  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()))
ans = 'Three'
for s_ in s:
    if s_=='Y':
        ans = 'Four'
print(ans)

n = int(input())
s = list(input().split())
ans = 'Three'
for s_ in s:
    if s_=='Y':
        ans = 'Four'
print(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())
S = list(map(int,input().split()))
if 'Y' in S:
    print('Four')
else:
    print('Three')

N = int(input())
S = list(input())
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()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("four")
else:
    print("three")


s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("four")
else:
    print("three")


n=int(input())
s=input()
Y=False
for w in s:
    if w=="Y":
        Y=True
if Y==True:
    print("Four")
else:
    print("Three")


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

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

n = int(input())
color = input().split()
 
if 'Y' in color:
    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()))
ans = "Three"
for i in range(n):
    if s[i] == "Y":
        ans = "Four"
        break
print(ans)

n = int(input())
s = input()
ans = "Three"
for i in range(n):
    if s[i] == "Y":
        ans = "Four"
        break
print(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):
for i in  s:
    if i =="Y":
        print ("Four")
        break

else:
    print ("Three")

N=(int,input())
s = input().split()
for i in  s:
    if i =="Y":
        print ("Four")
        break
 
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):
def sortex(X):
  b=sorted(X)
  b.append("null")
  a=[]
  for i in range(len(X)):
    if b[i]!=b[i+1]:a.append(b[i])
  return a
n,s=int(input()),input().split();s=sortex(s);print("Four"if len(n)==4else"Three")

def sortex(X):
  b=sorted(X)
  b.append("null")
  a=[]
  for i in range(len(X)):
    if b[i]!=b[i+1]:a.append(b[i])
  return a
n,s=int(input()),input().split();s=sortex(s);print("Four"if len(s)==4else"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 = list(map(int,input().split()))
if 'Y' in s_list:
  print('Four')
else:
  print('Three')

n = int(input())
s_list = list(input().split())
if 'Y' in s_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())

ball_list = []

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

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

N = int(input())

ball_list = map(str, input().split())
type_num = len(list(set(ball_list)))

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


Verdicts: Runtime Error

Accepted