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())
print("Four" if sum(["Y" if in input().split() for i in range(n)])!=0 else "Three")

n=int(input())
A=sorted(list(input().split()))
if A[-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):
# -*- coding: utf-8 -*-


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

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

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


if __name__ == "__main__":
    main()


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


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

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

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


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

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

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

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,*s=map(int,open(0).read().split())
print('TFhoruere'[len(set(s))==4::2])

_,*s=map(str,open(0).read().split())
print('TFhoruere'[len(set(s))==4::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):
input()
print(len(set(input().split())))

input()
l = len(set(input().split()))
if l == 3:print('Three')
if l == 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):
// space 区切りの文字を入力として、Yが存在すれば、Four, else Threeを出力


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


n = int(input())
s = list(map(str,input().split()))
ans = 0
for i in range(len(s)):
    if s[i] == "Y":
        ans = 1
        break
if ans == 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())
a=map(int, input().split())
print("Four" if "Y" in a else "Three")


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

N=input()
s=len(set(list(input().split(' '))))
if s==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())
hina = input().split()
flag = "syurui_3"
for i in hina:
  if i == "y":
    flag = "syurui_4"
if flag == "syurui_3":
  print("Three")
else:
  print("Four")

N = int(input())
hina = input().split()
flag = "syurui_3"
for i in hina:
  if i == "Y":
    flag = "syurui_4"
if flag == "syurui_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):
print("Four" if "Y" in input() else "Three")


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


Verdicts: Wrong Answer

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

Submission attempts (in order):
import collections
n = input()
print(len(collections.Counter(input().replace(" ",""))))

import collections
n = input()
ans = len(collections.Counter(input().replace(" ","")))
if ans == 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 = [map(int,input().split())]
s_s = set(s)
print(len(s_s))

n = int(input())
s = list(input().split())
s_s = set(s)
if len(s_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):
S = input()

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

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

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

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())
Flag=False
for i in range(N):
  C=input()
  if C=='Y':
    Flag=True
    
print('Four' if Flag else 'Three')
  

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

N = int(input())
S = [i for i in input().split()]
if len(set(S)) == 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):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

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

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

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

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

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

_=input()
s=set(input().split())
if len(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=iny(input())
a=set(list(input().split()))
if len(a)==3:
    print("Three")
else:
    print("Four")


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

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

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

_=input()
print('Three' if len(set(map(str, input().split())))==3 else '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()))
if "Y" in S == True:
    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())
v = []
for i in range(N):
    s = input()
    if !(s in v):
        v.append(s);

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

N = int(input())
v = []
S = input().split()

for s in S:
    if not s in v:
        v.append(s);

if len(v) == 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();"TFhoruere"[len(set(input().split()))>3::2]

input();print("TFhoruere"[len(set(input().split()))>3::2])

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(input().split())
print(len(s))

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

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

Verdicts: Runtime Error

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

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

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

Verdicts: Wrong Answer

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

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

N=int(input())
A=list(map(str, input().split()))
color=['P','W','G','Y']
counter=0
for i in color:
  if i in A:
    counter+=1
if counter==4:
  print('Four')
else:
  print('Three')


Verdicts: Runtime Error

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

Submission attempts (in order):
N = int(input())
S = list(map(int, 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())
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
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)) == 4:
    print('Four')
elif len(set(S)) == 3:
    print('Three')

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

Verdicts: Runtime Error

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

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

N = int(input())
S = list(map(str,input().split()))
count_P = 0
count_W = 0
count_G = 0
count_Y = 0
ans = 0
for i in range(N):
    if S[i] == "P":
      if count_P == 0:
        ans += 1
        count_P += 1
      else:
        ans += 0
    if S[i] == "W":
      if count_W == 0:
        ans += 0
        count_W += 1
      else:
        ans += 0
    if S[i] == "G":
      if count_G == 0:
        ans += 1
        count_G += 1
      else:
        ans += 0
    if S[i] == "Y":
      if count_Y == 0:
        ans += 1
        count_Y += 1
      else:
        ans += 0
if ans == 3:
  print("Three")
else:
  print("Four")

N = int(input())
S = input().split()
K = set(S)
k = list(K)
if len(k) == 3:
  print("Three")
elif len(k) == 4:
  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())
D = [input() for _ in range(N)]
print('Four' if len(set(D))==4 else 'Three')

input()
print("Four" if "Y" in input() 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):
from math import *

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


from math import *

n = int(input())
s = input()
b = False
for x in range(len(s)):
  if x is 'Y':
    b = True
    break
print('Four' if b else 'Three')


from math import *

n = int(input())
s = input()
b = False
for x in range(len(s)):
  if s[x] is 'Y':
    b = True
    break
print('Four' if b else '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())

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

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

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




N = int(input())
 
Tmp = []
Tmp = input().rstrip().split(' ')
 
nAns = [ 0 for i in range(4)]
Flag = 0
for i in range(N):
  S = Tmp[i]
  if S=='Y':
    Flag = 1

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

n = int(input())
print("Three" if "Y" in input() else "Four")

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

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

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


N = int(input())
s = list(map(str, input().split()))
print(len(set(s)))


N=input()
print(["Four","Three"][len(set(list(map(str, input().split()))))==3])

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):
#!/usr/bin/python3

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


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


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

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

if __name__ == '__main__':
    main()


#!/usr/bin/python3

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


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


def main():
    N = int(input())
    S = list(input().split())

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

if __name__ == '__main__':
    main()


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):
araresuu = input()
sikou = input()
kaisuu = 0
for i in sikou:
    if i == 'Y':
        print('four')
        break
    kaisuu += 1
if kaisuu == len(sikou):
    print('Three')

araresuu = int(input())
sikou = input().split()
kaisuu = 0

for i in sikou:
    if i == 'Y':
        print('Four')
        break
    kaisuu += 1

if kaisuu == araresuu:
    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())
str=input()
ans=3
for i in range(0,n):
    if str[i]=="Y":
        ans=4
print(ans)

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

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

N=int(input());print("Three" if len(set(input().split()))==3 else "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):
import sys
input = sys.stdin.readline
N = int(input())
S = input().rstrip().split()
from collections import Counter
c = Counter(S)
if len(c.keys) == 4:
    print("Four")
else:
    print("Three")

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

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In Japan, people make offerings called _hina arare_ , colorful crackers, on March 3.  We have a bag that contains N hina arare. (From here, we call them arare.)  It is known that the bag either contains arare in three colors: pink, white and green, or contains arare in four colors: pink, white, green and yellow.  We have taken out the arare in the bag one by one, and the color of the i-th arare was S_i, where colors are represented as follows - pink: `P`, white: `W`, green: `G`, yellow: `Y`.  If the number of colors of the arare in the bag was three, print `Three`; if the number of colors was four, print `Four`.

Submission attempts (in order):
n = int(input())
s = input().split()
arare = ["P", "W", "G", "Y"]


def hina(S):
    if S in arare:
        arare.remove(S)
    return len(arare)


map(hina, s)
print("Four") if (4 - len(arare) == 4) else print("Three")


n = int(input())
s = input().split()
arare = ["P", "W", "G", "Y"]


def hina(S):
    if S in arare:
        arare.remove(S)
    return len(arare)


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

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

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(map(int, 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

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())
arares = list(map(int, input().split()))
four = False
for arare in arares:
  if arare == 'Y':
    four = True
    break
if four:
  print('Four')
else:
  print('Three')

N = int(input())
arares = list(input().split())
four = False
for arare in arares:
  if arare == 'Y':
    four = True
    break
if four:
  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())

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

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

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

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

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


Verdicts: Wrong Answer

Runtime Error

Accepted