problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03424
u000623733
2,000
262,144
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`.
['N = int(input())\nAlist = input().split()\n \na = set(Alist)\nprint(len(a))', "N = int(input())\nAlist = list(map(int, input().split()))\n \na = set(Alist)\nif len(a) == 3:\n print('THREE')\nelse:\n print('FOUR')", 'N = int(input())\nAlist = list(map(int, input().split()))\n\na = set(Alist)\nprint(len(a))', "N = int(input())\nAlist = input().split()\n \na = set(Alist)\nif len(a) == 3:\n print('Three')\nelse:\n print('Four')"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s403432235', 's410334453', 's528416305', 's199160175']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[71, 132, 86, 116]
p03424
u001490106
2,000
262,144
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`.
["N = int(input())\nS = list(map(int, input().split()))\n\ncnt=0\nfor i in range(N):\n if S[i]=='Y':\n print('Four')\n break\n cnt=0\n else:\n cnt+=1\nif cnt==N:\n print('Three')", "N = int(input())\nS = list(map(str, input().split()))\n\ncnt=0\nfor i in range(N):\n if S[i]=='Y':\n print('Four')\n break\n cnt=0\n else:\n cnt+=1\nif cnt==N:\n print('Three')"]
['Runtime Error', 'Accepted']
['s671358028', 's179877531']
[2940.0, 2940.0]
[17.0, 17.0]
[201, 201]
p03424
u002459665
2,000
262,144
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`.
['def main():\n n = int(input())\n s = [int(i) for i in input().split()]\n\n if "Y" in s:\n print("Four")\n else:\n print("Three")\n\n\nif __name__ == \'__main__\':\n main()\n', 'def main():\n n = int(input())\n s = input().split()\n\n if "Y" in s:\n print("Four")\n else:\n print("Three")\n\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Accepted']
['s647841100', 's893224296']
[2940.0, 2940.0]
[18.0, 17.0]
[188, 170]
p03424
u003501233
2,000
262,144
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`.
['n=int(input())\ns=list(map(str,input().split()))\n\nif len(s) == 4:\n print("Four")\nelse:\n print("Three")', 'n=int(input())\ns=list(map(input().split()))\n\nif len(s) == 4:\n print("Four")\nelse:\n print("Three")', 'n=int(input())\ns=list(map(str,input().split()))\n\nif s.count("Y") >= 1:\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s092359852', 's134500237', 's479219341']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[103, 99, 109]
p03424
u005388620
2,000
262,144
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`.
["n = int(input())\nlis = input().split()\nfor i in range(n):\n if lis[i] == 'Y':\n print('Four')\n break\n else:\n if i == n-1\n print('Three')", "n = int(input())\nlis = input().split()\ncount = 0\nfor i in range(n):\n if lis[i] == 'Y':\n print('Four')\n break\n else:\n if(count == n-1)\n print('Three')\n count++\n", "n = int(input())\nlis = input().split()\nfor i in range(n):\n if lis[i] == 'Y':\n print('Four')\n break\n else:\n if i == n-1:\n \tprint('Three')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s152839344', 's857169333', 's121298208']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[148, 176, 151]
p03424
u010090035
2,000
262,144
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`.
['n=int(input())\ns=list(map(int,input().split()))\nif(\'Y\' in s):\n\tprint("Four")\nelse:\n\tprint("Three")', 'n=int(input())\ns=list(input().split())\nif(\'Y\' in s):\n\tprint("Four")\nelse:\n\tprint("Three")']
['Runtime Error', 'Accepted']
['s678334362', 's593469094']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 89]
p03424
u013202780
2,000
262,144
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`.
['_,l=map(str,open(0));print("Four" if len(set(l.split(" ")))==4 else "Three")', '_,l=map(str,open(0));print("Four" if len(set(l.split(" ")))==4 else "Three")', 'n,s=map(str,open(0));print("Four" if "Y" in s else "Three")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s352690142', 's660144840', 's796707396']
[8800.0, 8800.0, 8992.0]
[27.0, 27.0, 30.0]
[76, 76, 59]
p03424
u015597249
2,000
262,144
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`.
["n = int(input())\nl = len(set(map(input().strip().split())))\nprint('Four' if l == 4 else 'Three')", "n = input()\nl = len(set(input().strip().split()))\nprint('Four' if l == 4 else 'Three')"]
['Runtime Error', 'Accepted']
['s047890262', 's358583336']
[2940.0, 2940.0]
[17.0, 18.0]
[96, 86]
p03424
u019584841
2,000
262,144
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`.
['n=int(input())\nl=list(input().split())\na=set(l)\nprint(len(a))', 'n=int(input())\nl=list(input().split())\na=set(l)\nif len(a) ==3:\n print("Three")\nelse:\n print("Four")\n']
['Wrong Answer', 'Accepted']
['s174932703', 's798628726']
[3064.0, 3060.0]
[17.0, 18.0]
[61, 102]
p03424
u032716397
2,000
262,144
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`.
['N=int(input())\nNCount = 0\nwhile N =>0:\n NCount+= 1\n N -=3\nprint(NCount-1)', 'a=int(input())\nb=input()\nif \'Y\' in b:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s518967950', 's964636246']
[2940.0, 2940.0]
[17.0, 19.0]
[79, 80]
p03424
u037221289
2,000
262,144
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`.
["import collections\nN = int(input())\nS = list(map(str,input().split(' ')))\nC = collections.Counter(S)\nprint(len(C))", "import collections\nN = int(input())\nS = list(map(str,input().split(' ')))\nC = collections.Counter(S)\nif len(C) == 3:\n print('Three')\nelse:\n print('Four')"]
['Wrong Answer', 'Accepted']
['s866258107', 's864596814']
[3316.0, 3316.0]
[21.0, 20.0]
[114, 155]
p03424
u039623862
2,000
262,144
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`.
["print('Four' if 'Y' in input() else 'Three')", "input()\nprint('Four' if 'Y' in input() else 'Three')"]
['Wrong Answer', 'Accepted']
['s974662931', 's993038545']
[2940.0, 2940.0]
[17.0, 17.0]
[44, 52]
p03424
u041075929
2,000
262,144
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`.
["import sys, os\n\nf = lambda:list(map(int,input().split()))\nif 'local' in os.environ :\n sys.stdin = open('./input.txt', 'r')\n\ndef solve():\n n = f()[0]\n s = input().split()\n\n for i in s:\n if i == 'Y':\n print('4')\n return\n \n print('3')\n\nsolve()\n", "import sys, os\n\nf = lambda:list(map(int,input().split()))\nif 'local' in os.environ :\n sys.stdin = open('./input.txt', 'r')\n\ndef solve():\n n = f()[0]\n s = input().split()\n\n for i in s:\n if i == 'Y':\n print('Four')\n return\n \n print('Three')\n\nsolve()\n"]
['Wrong Answer', 'Accepted']
['s654283871', 's479475294']
[2940.0, 2940.0]
[17.0, 17.0]
[288, 295]
p03424
u045909335
2,000
262,144
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`.
["N = int(input())\nS = list(map(str, input().split()))\nprint(S)\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')", "N = int(input())\nS = list(map(str, input().split()))\nprint(S)\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')", "N = int(input())\nS = list(map(str, input().split()))\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s431322206', 's455432305', 's786969943']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[117, 117, 108]
p03424
u046187684
2,000
262,144
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`.
['n = input().strip()\ns = set(input().strip().split(" "))\nif len(s) == 3:\n print("Three")\nelse:\n print("Four"', 'def solve(string):\n n, *s = string.split()\n return "Three" if len(set(s)) == 3 else "Four"\n\n\nif __name__ == \'__main__\':\n print(solve(\'\\n\'.join([input(), input()])))\n']
['Runtime Error', 'Accepted']
['s135555341', 's846936486']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 174]
p03424
u048945791
2,000
262,144
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`.
['n = int(input())\ns = list(map(int, input().split()))\n\nfor si in s:\n if si == "Y":\n print("Four")\n break\nelse:\n print("Three")', 'n = int(input())\ns = input()\n\nif "Y" in s:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s636677489', 's853289931']
[2940.0, 2940.0]
[17.0, 17.0]
[133, 81]
p03424
u050698451
2,000
262,144
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`.
["flag = 'False'\nN = int(input())\nc = raw_input().split()\nfor i in range(0,N):\n if c[i] == 'Y':\n flag = 'True'\nif flag:\n print('Four')\nelse:\n print('Three')", "N = int(input())\nflag = 'False'\nfor i in range(0,N):\n c = input()\n if c == 'Y':\n flag = 'True'\nif flag:\n print('Four')\nelse:\n print('Three')", "flag = 0\nN = int(input())\nc = input().split()\nfor i in range(0,N):\n if c[i] == 'Y':\n flag = 1\nif flag:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s782118635', 's882158553', 's192868226']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[160, 147, 145]
p03424
u057463552
2,000
262,144
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`.
['N = int(input())\nhina = []\nfor N in range(0,N):\n S = input()\n hina.append(S)\n\nif "Y" in hina:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\n\nhina = [S for S in input().split()]\n\nif "Y" in hina:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s715123847', 's895651168']
[3060.0, 2940.0]
[20.0, 19.0]
[142, 113]
p03424
u059262067
2,000
262,144
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`.
['n = int(input()) \nprint(len(set([i for i in input().split()])))', 'n = int(input()) \nif len(set([i for i in input().split()])) == 3:\n print("Three")\nelse:\n print("Four")']
['Wrong Answer', 'Accepted']
['s611141814', 's511785413']
[2940.0, 2940.0]
[19.0, 17.0]
[63, 104]
p03424
u066855390
2,000
262,144
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`.
['a, b, c = map(int, input().split())\nprint("Yes" if a <= c <= b else "No")\n', 'n = int(input())\narare = set(input().split())\nif len(arare) == 3:\n print("Three")\nelse:\n print("Four")\n']
['Runtime Error', 'Accepted']
['s020386090', 's234785003']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 109]
p03424
u077019541
2,000
262,144
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`.
['N = int(input())\nSs = set([input() for s in range(N)])\nif len(Ss)==3:\n print("Three")\nelse:\n print("Four")', 'N = int(input())\nSs = set([s for s in input()])\nprint(Ss)\nif len(Ss)-1==3:\n print("Three")\nelse:\n print("Four")', 'N = int(input())\nAn = set(input().split())\nif len(An)==3:\n print("Three")\nelse:\n print("Four")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s401505926', 's445202351', 's471640488']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[112, 117, 100]
p03424
u077291787
2,000
262,144
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`.
['\n# Editorial ver.\nn = int(input())\nlst = input().rstrip().split()\nprint(lst)\nprint("Four" if "Y" in lst else "Three")', '\n# Editorial ver.\nn = int(input())\nlst = [input().rstrip().split()]\nprint("Three" if "Y" not in lst else "Four")', '\ndef main():\n N, *S = open(0).read().split()\n flg = "Y" in S\n print("Four" if flg else "Three")\n\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s521593553', 's576671425', 's954887893']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[139, 134, 166]
p03424
u087789049
2,000
262,144
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`.
['ips = []\nips.append(input())\nwhile True:\n try:\n ips.append(input())\n except (EOFError):\n break\nnum = int(ips[0])\nhina = ips[1]\nv = []\nfor i in range(num):\n if hina[i] not in v:\n v.append(hina[i])\nif len(v) == 3:\n print("three")\nelif len(v) == 4:\n print("four")', 'ips = []\nips.append(input())\nwhile True:\n try:\n ips.append(input())\n except (EOFError):\n break\nnum = int(ips[0])\nhina = ips[1]\nv = []\nfor i in range(num):\n if hina[i] not in v:\n v.append(hina[i])\nprint(len(v))', 'ips = []\nips.append(input())\nwhile True:\n try:\n ips.append(input())\n except (EOFError):\n break\nnum = int(ips[0])\nhina = ips[1].split(" ")\nv = []\nfor i in range(num):\n if hina[i] not in v:\n v.append(hina[i])\nif len(v) == 3:\n print("Three")\nelif len(v) == 4:\n print("Four")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s744217817', 's909557881', 's170515386']
[3064.0, 3188.0, 3060.0]
[17.0, 19.0, 17.0]
[296, 239, 307]
p03424
u089142196
2,000
262,144
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`.
['N=int(input())\nS=list(map(int,input().split()))\n\nM=set(S)\nif len(M)==4:\n print("Four")\nelse:\n print("Three")', 'N=int(input())\nS=input().split()\n\nM=set(S)\nif len(M)==4:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s537875291', 's623626586']
[2940.0, 2940.0]
[18.0, 17.0]
[110, 95]
p03424
u089230684
2,000
262,144
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`.
['n = int(input())\nli = []\ncount =0\n\nliste = [x for x in input().split()]\ntemp = []\n\nfor i in range(len(liste)):\n if liste[i] not in temp:\n temp.append(liste[i])\n count +=1\n\n\nprint(count)\n', 'n = int(input())\nli = []\ncount =0\n\nliste = [x for x in input().split()]\ntemp = []\n\nfor i in range(len(liste)):\n if liste[i] not in temp:\n temp.append(liste[i])\n\nif len(temp)==3:\n print("Three")\n\nelse:\n print("Four")']
['Wrong Answer', 'Accepted']
['s898528281', 's758777331']
[2940.0, 3060.0]
[17.0, 17.0]
[203, 231]
p03424
u094191970
2,000
262,144
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`.
["n=int(input())\ns=list(map(int,input().split()))\n\nprint('Three' if len(list(set(s))))==3 else 'Four')", "n=int(input())\na=input().split()\nprint('Four' if 'Y' in a else 'Three')"]
['Runtime Error', 'Accepted']
['s235716224', 's874541890']
[2940.0, 3060.0]
[17.0, 19.0]
[100, 71]
p03424
u095021077
2,000
262,144
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`.
["N=int(input())\nS=list(map(int, input().split()))\nX=set()\nfor s in S:\n X.add(s)\n \nif len(X)==3:\n print('Three')\nelse:\n print('Four')", "N=int(input())\nS=list(input().split())\nX=set()\nfor s in S:\n X.add(s)\n \nif len(X)==3:\n print('Three')\nelse:\n print('Four')\n"]
['Runtime Error', 'Accepted']
['s874568959', 's907244907']
[9124.0, 9152.0]
[23.0, 25.0]
[135, 126]
p03424
u095756391
2,000
262,144
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`.
['N = int(input())\n\nS = list(map(int, input().split()))\n\ncolor = [0, 0, 0, 0]\n\nfor s in S:\n if (s == "P"):\n color[0] += 1\n elif (s == "G"):\n color[1] += 1\n elif (s == "W"):\n color[2] += 1\n else:\n color[3] += 1\n \nif (color.count(0) == 3):\n print(Three)\nelse:\n print(Four)', 'N = int(input())\n \nS = list(map(str, input().split()))\n \ncolor = [0, 0, 0, 0]\n \nfor s in S:\n if (color.count(0) == 0):\n print("Four")\n break\n \n if (s == "P"):\n color[0] += 1\n elif (s == "G"):\n color[1] += 1\n elif (s == "W"):\n color[2] += 1\n else:\n color[3] += 1\n \nif (color.count(0) == 1):\n print("Three")']
['Runtime Error', 'Accepted']
['s872649865', 's537096899']
[3064.0, 3064.0]
[20.0, 17.0]
[287, 331]
p03424
u098968285
2,000
262,144
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`.
['N = int(input())\nans = "Four" if \'Y\' in list(map(int, input().split())) else "Three"\nprint(ans)\n', 'N = int(input())\nans = "Four" if \'Y\' in list(input().split()) else "Three"\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s920745932', 's507564078']
[2940.0, 3060.0]
[17.0, 19.0]
[96, 86]
p03424
u102960641
2,000
262,144
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`.
['n = int(input())\ns = list(input().split())\nif any(i === "Y" for i in s):\n print("Four")\nelse:\n print("Three")', 'n = int(input())\ns = list(input().split())\nif any(i == "Y" for i in s):\n print("Four")\nelse:\n print("Three")\n']
['Runtime Error', 'Accepted']
['s571482819', 's985520750']
[2940.0, 2940.0]
[17.0, 18.0]
[111, 111]
p03424
u103902792
2,000
262,144
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`.
["_ = input()\nA = list(map(int,input().split()))\nif 'Y' in A:\n print('Four')\nelse:\n print('Three')", "_ = input()\nA = list(input().split())\nif 'Y' in A:\n print('Four')\nelse:\n print('Three')\n\n"]
['Runtime Error', 'Accepted']
['s536413647', 's832772921']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 91]
p03424
u106297876
2,000
262,144
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`.
['N = int(input())\nS_list = list(map(str, input().split( )))\nimport collections\nS_dict = collections.Counter(S_list)\nS_val, S_count=zip(*S_dict.most_common())\nans = len(S_val)\nprint(ans)', "N = int(input())\nS_list = list(map(str, input().split( )))\nimport collections\nS_dict = collections.Counter(S_list)\nS_val, S_count=zip(*S_dict.most_common())\nans_number = len(S_val)\nans = 'Three'\nif ans_number = 4:\n ans = 'Four'\nprint(ans)", "N = int(input())\nS_list = list(map(str, input().split( )))\nimport collections\nS_dict = collections.Counter(S_list)\nS_val, S_count=zip(*S_dict.most_common())\nans_number = len(S_val)\nans = 'Three'\nif ans_number == 4:\n ans = 'Four'\nprint(ans)"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s303571395', 's805397641', 's146181251']
[3444.0, 2940.0, 3316.0]
[21.0, 17.0, 21.0]
[184, 239, 240]
p03424
u107077660
2,000
262,144
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`.
['input()\nprint(len(set(input().split())))\n', 'input()\nprint(len(set([input().split()]))', 'input()\nn = len(set(input().split()))\nprint("Three" if n == 3 else "Four")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s215634600', 's234633536', 's469837752']
[2940.0, 2940.0, 2940.0]
[17.0, 20.0, 17.0]
[41, 41, 74]
p03424
u113255362
2,000
262,144
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`.
['N = int(input())\nList = list(map(int, input().split()))\ns_l = set(List)\nif len(s_l) == 3:\n print("Three")\nelse:\n print("Four")', 'N = int(input())\nList = list(map(str, input().split()))\ns_l = set(List)\nif len(s_l) == 3:\n print("Three")\nelse:\n print("Four")']
['Runtime Error', 'Accepted']
['s046006910', 's959472135']
[9036.0, 8824.0]
[21.0, 24.0]
[128, 128]
p03424
u118642796
2,000
262,144
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`.
['N = int(input())\nS = [s for _ in input().split()]\n\nans = "Three"\n\nfor s in S: \n if s == "Y":\n ans = "Four"\n break\nprint(ans)\n', 'N = int(input())\nS = input().split() \n\nans = "Three"\n\nfor s in S: \n if s == "Y":\n ans = "Four"\n break\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s794707159', 's913402970']
[2940.0, 2940.0]
[17.0, 18.0]
[144, 144]
p03424
u123376916
2,000
262,144
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`.
['# -*- coding: utf-8 -*-\n\ninput()\n\ninputs = input().split()\n\nprint(len(set(inputs)))', '# -*- coding: utf-8 -*-\n\ninput()\n\nprint("Four" if len(set(input().split())) == 4 else "Three" )']
['Wrong Answer', 'Accepted']
['s006484826', 's648403669']
[2940.0, 2940.0]
[19.0, 17.0]
[124, 136]
p03424
u123745130
2,000
262,144
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`.
['i=open(0).read().split()[1:]\nprint(["Three","Four"][if "Y" in i])', 'i=open(0).read().split()[1:]\nprint(["Three","Four"]["Y" in i])']
['Runtime Error', 'Accepted']
['s275924057', 's933781657']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 62]
p03424
u125097160
2,000
262,144
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`.
["zenbu = int(input())\nmame = [i for i in input().split()]\n\nkiiro = 0\n\nfor mame in range(zenbu):\n if mame == 'Y':\n kiiro = 1\n break\n\nif kiiro == 1:\n print('Four')\nelse:\n print('Three')", "zenbu = int(input())\nmame = [i for i in input().split()]\n\nkiiro = 0\n\nfor moji in mame:\n if moji == 'Y':\n kiiro = 1\n break\n\nif kiiro == 1:\n print('Four')\nelse:\n print('Three')"]
['Wrong Answer', 'Accepted']
['s653616053', 's903387373']
[3060.0, 2940.0]
[17.0, 17.0]
[203, 195]
p03424
u125269142
2,000
262,144
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`.
['n = int(input())\nlists = list(map(int, input().split()))\n\nsets = set(lists)\nans = len(sets)\n\nprint(ans)', "n = int(input())\nlists = input().split()\n\nsets = set(lists)\nif len(sets) == 3:\n ans = 'Three'\nelse:\n ans = 'Four'\n\nprint(ans)"]
['Runtime Error', 'Accepted']
['s573617337', 's518932332']
[9148.0, 9152.0]
[22.0, 25.0]
[103, 131]
p03424
u127499732
2,000
262,144
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`.
['n=input()\nprint("Four" if len(set(map(int,input().split())))==4 else "Three")', 'n=input()\nprint("Four" if len(set(map(str,input().split())))==4 else "Three")']
['Runtime Error', 'Accepted']
['s942332314', 's586176793']
[2940.0, 2940.0]
[17.0, 24.0]
[77, 77]
p03424
u129898499
2,000
262,144
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`.
['N = int(input())\nn = "Three"\nS = input().split()\nfor i in range(N):\n If S[i+1] == "Y":\n n = "Four"\n break\n\nprint(n)\n \n\n ', 'N = int(input())\nn = "three"\n\nfor i in (N):\n S = input().split()\n If S == Y:\n n = "four"\n break\nprint(n)\n \n\n ', 'N = int(input())\nn = "Three"\n\nfor i in range(N):\n S = input().split()\n If S == "Y":\n n = "Four"\n break\n\nprint(n)\n \n\n ', 'N = int(input())\nn = "three"\n\nfor i in (N):\n S = input().split()\n If S == "Y":\n n = "four"\n break\nprint(n)\n \n\n ', 'N = int(input())\nn = "Three"\nS = input().split()\nfor i in range(N):\n If S[i] == "Y":\n n = "Four"\n break\n\nprint(n)\n \n\n ', 'N = int(input())\nn = Three\n\nfor i in (N):\n S = input().split()\n If S == "Y":\n n = "Four"\n break\n\nprint(n)\n \n\n ', 'N = int(input())\nn = "Three"\n\nfor i in (N):\n S = input().split()\n If S == "Y":\n n = "Four"\n break\nprint(n)\n \n\n ', 'N = int(input())\nn = "Three"\n\nfor i in (N):\n S = input().split()\n If S == "Y":\n n = "Four"\n break\n if S != "Y":\n continue\nprint(n)\n \n\n ', 'N = int(input())\nnumber = "Three"\nS = input().split()\nfor i in range(N):\n If S[i] == "Y":\n number = "Four"\n break\n\nprint(number)\n \n\n ', 'N = int(input())\nn = "Three"\n\nfor i in range(N):\n S = input().split()\n If S == "Y":\n n = "Four"\n break\n\nprint(n)\n \n\n ', 'N = int(input())\nnumber = "Three"\nS = input().split()\n\nfor i in range(N):\n if S[i] == "Y":\n number = "Four"\n break\n\nprint(number)\n \n\n ']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s015462822', 's204109410', 's229790838', 's277672225', 's393774963', 's461063338', 's557166376', 's666800714', 's689090728', 's846737948', 's947348358']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 17.0, 17.0]
[131, 121, 129, 123, 129, 122, 123, 151, 144, 129, 145]
p03424
u136811344
2,000
262,144
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`.
['N = int(input())\nS = [int(x) for x in input().split()]\nif \'Y\' in S:\n print("Four")\nelse:\n print("Three")\n ', 'N = int(input())\nS = [x for x in input().split()]\nif \'Y\' in S:\n print("Four")\nelse:\n print("Three")\n ']
['Runtime Error', 'Accepted']
['s825808791', 's277504017']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 104]
p03424
u136869985
2,000
262,144
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`.
['n = int(input())\nS = list(input().split())\n\nS = set(S)\nprint(len(S))', 'n = int(input())\nS = list(input().split())\n\nS = set(S)\n\nif len(S) == 3:\n print("Three")\nelse:\n print("Four")']
['Wrong Answer', 'Accepted']
['s017217880', 's332137443']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 110]
p03424
u138486156
2,000
262,144
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`.
['n = int(input())\ns = list(map(int, input().split()))\nfor i in range(n):\n if s[i] == "Y":\n print("Four")\n exit()\nprint("Three")', 'n = int(input())\ns = input().split()\nif "Y" in s:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s392479921', 's483832558']
[2940.0, 2940.0]
[17.0, 17.0]
[133, 88]
p03424
u143492911
2,000
262,144
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`.
['n=int(input())\ns=list(input())\ns=set(s)\nif len(s)==4:\n print("Four")\nelse:\n print("Three")\n', 'n=int(input())\ns=list(input().split())\ns=set(s)\nif len(s)==4:\n print("Four")\nelse:\n print("Three")\n']
['Wrong Answer', 'Accepted']
['s442871626', 's546552591']
[3064.0, 3064.0]
[17.0, 17.0]
[97, 105]
p03424
u143509139
2,000
262,144
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`.
['input()\nprint(len(set(input().split())))', "input()\nprint('Four' if len(set(input().split())) == 4 else 'Three')"]
['Wrong Answer', 'Accepted']
['s386126300', 's189423486']
[2940.0, 2940.0]
[18.0, 17.0]
[40, 68]
p03424
u155687575
2,000
262,144
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`.
["# B\nn = int(input())\nsli = list(map(int, input().spllit()))\nfor s in sli:\n if s == 'Y':\n print('Four')\n exit()\n\nprint('Three')", "# B\nn = int(input())\nsli = list(input().split())\nfor s in sli:\n if s == 'Y':\n print('Four')\n exit()\n\nprint('Three')"]
['Runtime Error', 'Accepted']
['s284593354', 's546737502']
[2940.0, 2940.0]
[17.0, 17.0]
[143, 132]
p03424
u156931988
2,000
262,144
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`.
['n = int(input())\nli = []\nfor i in range(n):\n li.append(i)\nprint(len(set(li)))', 'n = int(input())\nli = list(input().split())\nprint(len(set(li)))', 'n = int(input())\nli = list(input().split())\ndi = {0:"One",1:"One",2:"Two",3:"Three",4:"Four"}\nprint(di[len(set(li))])']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s519602870', 's828372855', 's480340573']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[80, 63, 117]
p03424
u163320134
2,000
262,144
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`.
["n=int(input())\narr=[input() for _ in range(n)]\ncount=0\nif arr.count('P')!=0:\n count+=1\nif arr.count('Y')!=0:\n count+=1\nif arr.count('W')!=0:\n count+=1\nif arr.count('G')!=0:\n count+=1\nif count==3:\n print('Three')\nif count==4:\n print('Four')", "n=int(input())\narr=list(map(str,input().split()))\ncount=0\nif arr.count('P')!=0:\n count+=1\nif arr.count('Y')!=0:\n count+=1\nif arr.count('W')!=0:\n count+=1\nif arr.count('G')!=0:\n count+=1\nif count==3:\n print('Three')\nif count==4:\n print('Four')"]
['Runtime Error', 'Accepted']
['s269373000', 's784614807']
[3064.0, 3064.0]
[17.0, 17.0]
[245, 248]
p03424
u164678731
2,000
262,144
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`.
["# coding: utf-8\n# Your code here!\nn = int(input())\nl = list(map(int, input().split()))\nif len(set(l)) == 3:\n print('Three')\nelse:\n print('Four')\n", "# coding: utf-8\n# Your code here!\nn = int(input())\nl = list(map(str, input().split()))\nif len(set(l)) == 3:\n print('Three')\nelse:\n print('Four')\n"]
['Runtime Error', 'Accepted']
['s480693828', 's754080141']
[2940.0, 2940.0]
[17.0, 17.0]
[151, 151]
p03424
u170324846
2,000
262,144
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`.
['N = int(input())\nS = [int(i) for i in range(S)]\nif "Y" in S:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\nS = [int(i) for i in range(N)]\nif "Y" in S:\n print("Four")\nelse:\n print("Three")\n', 'N = int(input())\nS = input().split()\nif "Y" in S:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s179511348', 's412184425', 's192381394']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0]
[99, 100, 92]
p03424
u185424824
2,000
262,144
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`.
['N = int(input())\nS = list(map(int,input().split()))\n\nS.sort()\n\nif S[-1] == "Y":\n print("Four")\nelse:\n print("Three")\n \n ', 'N = int(input())\nS = input().split()\n \nS.sort()\n \nif S[-1] == "Y":\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s930059996', 's341628390']
[2940.0, 2940.0]
[17.0, 17.0]
[138, 105]
p03424
u187205913
2,000
262,144
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`.
["n = int(input())\ns = list(map(int,input().split()))\nans = 'Three'\nfor s_ in s:\n if s_=='Y':\n ans = 'Four'\nprint(ans)", "n = int(input())\ns = list(input().split())\nans = 'Three'\nfor s_ in s:\n if s_=='Y':\n ans = 'Four'\nprint(ans)\n"]
['Runtime Error', 'Accepted']
['s357424685', 's698026000']
[2940.0, 2940.0]
[19.0, 17.0]
[126, 118]
p03424
u189479417
2,000
262,144
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`.
["N = int(input())\nS = list(map(int,input().split()))\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')", "N = int(input())\nS = list(input())\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s303625498', 's862326823']
[2940.0, 2940.0]
[17.0, 18.0]
[107, 90]
p03424
u192541825
2,000
262,144
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`.
['n=int(input())\ns=input()\nY=False\nfor w in s:\n if w=="Y":\n Y=True\nif Y==True:\n print("four")\nelse:\n print("three")\n', 's=input()\nY=False\nfor w in s:\n if w=="Y":\n Y=True\nif Y==True:\n print("four")\nelse:\n print("three")\n', 'n=int(input())\ns=input()\nY=False\nfor w in s:\n if w=="Y":\n Y=True\nif Y==True:\n print("Four")\nelse:\n print("Three")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s023856067', 's633780417', 's515151299']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[130, 115, 130]
p03424
u207707177
2,000
262,144
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`.
['n = int(input())\ncolor = input().split()\nprint(color)\n\nif \'Y\' in color:\n print("Four")\nelse:\n print("Three")', 'n = int(input())\ncolor = input().split()\n \nif \'Y\' in color:\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Accepted']
['s498424148', 's555434780']
[2940.0, 3064.0]
[17.0, 17.0]
[114, 102]
p03424
u214434454
2,000
262,144
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`.
['n = int(input())\ns = list(map(int, input().split()))\nans = "Three"\nfor i in range(n):\n if s[i] == "Y":\n ans = "Four"\n break\nprint(ans)', 'n = int(input())\ns = input()\nans = "Three"\nfor i in range(n):\n if s[i] == "Y":\n ans = "Four"\n break\nprint(ans)']
['Runtime Error', 'Accepted']
['s796347740', 's083573684']
[2940.0, 2940.0]
[17.0, 17.0]
[151, 127]
p03424
u221345507
2,000
262,144
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`.
['for i in s:\n if i =="Y":\n print ("Four")\n break\n\nelse:\n print ("Three")', 'N=(int,input())\ns = input().split()\nfor i in s:\n if i =="Y":\n print ("Four")\n break\n \nelse:\n print ("Three")']
['Runtime Error', 'Accepted']
['s698217614', 's961308854']
[2940.0, 2940.0]
[17.0, 17.0]
[92, 129]
p03424
u227082700
2,000
262,144
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`.
['def sortex(X):\n b=sorted(X)\n b.append("null")\n a=[]\n for i in range(len(X)):\n if b[i]!=b[i+1]:a.append(b[i])\n return a\nn,s=int(input()),input().split();s=sortex(s);print("Four"if len(n)==4else"Three")', 'def sortex(X):\n b=sorted(X)\n b.append("null")\n a=[]\n for i in range(len(X)):\n if b[i]!=b[i+1]:a.append(b[i])\n return a\nn,s=int(input()),input().split();s=sortex(s);print("Four"if len(s)==4else"Three")']
['Runtime Error', 'Accepted']
['s861237394', 's871071378']
[3060.0, 3060.0]
[17.0, 17.0]
[208, 208]
p03424
u227085629
2,000
262,144
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`.
["n = int(input())\ns_list = list(map(int,input().split()))\nif 'Y' in s_list:\n print('Four')\nelse:\n print('Three')", "n = int(input())\ns_list = list(input().split())\nif 'Y' in s_list:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s783698621', 's765480777']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 104]
p03424
u228759454
2,000
262,144
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`.
['N = int(input())\n\nball_list = []\n\nfor i in range(N):\n ball_list.append(int(input()))\n\nprint(len(list(set(ball_list)))', "N = int(input())\n\nball_list = map(str, input().split())\ntype_num = len(list(set(ball_list)))\n\nif type_num == 3:\n print('Three')\nelse:\n print('Four')\n"]
['Runtime Error', 'Accepted']
['s490008777', 's150864779']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 155]
p03424
u240793404
2,000
262,144
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`.
['s = list(input().split())\nprint("Four" if len(set(s))==4 else "Three")', 'input();s = list(input().split())\nprint("Four" if len(set(s))==4 else "Three")']
['Wrong Answer', 'Accepted']
['s699672157', 's941887901']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 78]
p03424
u242031676
2,000
262,144
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`.
['import strutils;var n,a=stdin.readline.split;echo if a.contains("Y"):"Four"else:"Three"', 'n, *s = open(0).read().split()\nif "Y" in s: print("Four")\nelse: print("Three")']
['Runtime Error', 'Accepted']
['s869308390', 's465289648']
[2940.0, 3188.0]
[17.0, 19.0]
[87, 78]
p03424
u243572357
2,000
262,144
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`.
["input()\nprint('Four' if len(set(map(int, input().split()))) else 'Three')", "input()\na = input().split()\nprint('Four' if len(set(a)) == 4 else 'Three')"]
['Runtime Error', 'Accepted']
['s786678060', 's548689882']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 74]
p03424
u244836567
2,000
262,144
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`.
['a=input()\nb=list(map(input().split()))\nif "Y" in b:\n print("Four")\nelse:\n print("Three")', 'a=input()\nb=list(map(str,input().split()))\nif "Y" in b:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s583697602', 's899788394']
[8880.0, 8968.0]
[24.0, 29.0]
[90, 94]
p03424
u247211039
2,000
262,144
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`.
["N=int(input())\nS=list(map(string, input().slipt()))\n\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')", "N=int(input())\nS=list(input().split())\n \nif 'Y' in S:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s048143912', 's572949039']
[9168.0, 8976.0]
[24.0, 27.0]
[104, 92]
p03424
u247465867
2,000
262,144
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`.
['#2019/10/15\nN, *S = open(0).read().split()\nprint(len(set(S)))', '#2019/10/15\nN, *S = open(0).read().split()\nprint("Three" if len(set(S))==3 else "Four" )']
['Wrong Answer', 'Accepted']
['s655341780', 's587490110']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 88]
p03424
u248670337
2,000
262,144
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`.
['int()\nl=map(str,input().split())\nprint("Four" if len(set(l))==4 else "Three")', 'input()\nl=map(str,input().split())\nprint("Four" if len(set(l))==4 else "Three")']
['Wrong Answer', 'Accepted']
['s194406114', 's239730106']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 79]
p03424
u252828980
2,000
262,144
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`.
['n = int(input())\nprint(len(set(list(map(str,input().split())))))', 'n = int(input())\nprint("Four" if len(set(list(map(str,input().split()))))==4 else "Three")']
['Wrong Answer', 'Accepted']
['s281870727', 's015005122']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 90]
p03424
u252964975
2,000
262,144
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`.
["n=int(input())\nc=list(map(str, input().split()))\nL=[]\nfor i in range(n):\n if len([1 for l in L if l==c[i]]):\n L.append(c[i])\nif len(L)==4:\n print('Four')\nelse:\n print('Three')", "n=int(input())\nc=list(map(str, input().split()))\nL=[]\nfor i in range(n):\n if len([1 for l in L if l==c[i]]) == 0:\n L.append(c[i])\nif len(L)==4:\n print('Four')\nelse:\n print('Three')"]
['Wrong Answer', 'Accepted']
['s706876632', 's644891327']
[3060.0, 3060.0]
[18.0, 17.0]
[181, 186]
p03424
u257350577
2,000
262,144
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`.
["a = input().split()\nif 'Y' in a:\n print(4)\nelse:\n print(3)", 'a = input().split()\nif Y in a:\n print(4)\nelse:\n print(3)', "a = input().split()\nif 'Y' in a:\n print(four)\nelse:\n print(three)", "a = input().split()\nif 'Y' in a:\n print('four')\nelse:\n print('three')", "a = input().split()\nif 'Y' in a:\n print('4')\nelse:\n print('3')", "N = int(input())\na = input().split()\nif 'Y' in a:\n print('four')\nelse:\n print('three')", "N = int(input())\na = input().split()\nif 'Y' in a:\n print('Four')\nelse:\n print('Three')"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s172210283', 's291371184', 's306863986', 's896126205', 's927227133', 's935495095', 's912971159']
[2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 3064.0, 2940.0]
[17.0, 18.0, 18.0, 17.0, 18.0, 17.0, 17.0]
[64, 62, 71, 75, 68, 92, 92]
p03424
u268516119
2,000
262,144
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`.
['input()\nprint(len(set(input().split())))', 'print(len(set(input().split())))', "input()\nprint(['Three','Four'][len(set(input().split()))-3])"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s337389017', 's461662280', 's611964014']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[40, 32, 60]
p03424
u268792407
2,000
262,144
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`.
['n=int(input())\ns=set(map(str,input().split()))\nn=len(s)\nif s==3:\n print("Three")\nif s==4:\n print("Four")', 'n=int(input())\ns=set(map(str,input().split()))\nn=len(s)\nif n==3:\n print("Three")\nif n==4:\n print("Four")\n']
['Wrong Answer', 'Accepted']
['s136789338', 's142914508']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 107]
p03424
u277353449
2,000
262,144
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`.
["n=int(input())\na=[]\nfor i in range(0,n):\n a.append(input().split())\nif 'Y' in a:\n print('Four')\nelse:\n print('Three')", "n=int(input())\na=input().split()\nif 'Y' in a:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s634497703', 's207822309']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 84]
p03424
u277641173
2,000
262,144
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`.
['n=int(input())\ndic={}.fromkeys(map(str,input().split()))\nif len(dic)==3:\n print("Three")\nif len(dic)==4::\n print("Four")', 'n=int(input())\ndic={}.fromkeys(map(str,input().split()))\nif len(dic)==3:\n print("Three")\nif len(dic)==4:\n print("Four")']
['Runtime Error', 'Accepted']
['s188844508', 's159794543']
[2940.0, 2940.0]
[17.0, 17.0]
[122, 121]
p03424
u277802731
2,000
262,144
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`.
["#89b\nn=int(input())\na=list(set(input()))\nprint(a)\nprint('Four' if len(a)==5 else 'Three')", "#89b\nn=int(input())\na=list(set(input()))\nprint('Four' if len(a)==4 else 'Three')", "#89b\nn=int(input())\na=list(set(input()))\nprint(a)\nprint('Three' if len(a)==4 else 'Four')", "#89b\nn=int(input())\na=list(set(input()))\nprint(a)\nprint('Four' if len(a)==5 else 'Three')", "#89b\nn=int(input())\na=list(input())\na=set(a)\nc=['P','W','G','Y']\nif c-a==0:\n print('Four')\nelse:\n print('Three')", "#89b\nn=int(input())\na=list(set(input()))\nprint('Three' if len(a)==4 else 'Four')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s055819845', 's213339238', 's363095315', 's524151038', 's581144034', 's622842744']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 20.0, 17.0, 17.0, 17.0, 18.0]
[89, 80, 89, 89, 118, 80]
p03424
u281303342
2,000
262,144
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`.
['N = int(input())\nS = list(map(int,input().split()))\nprint("Four" if "Y" in S else "Three")', 'N = int(input())\nS = list(map(int,input().split()))\n\nAns = "Three"\nfor s in S:\n if s=="Y":\n Ans = "Four"\n break\n\nprint(Ans)', '# Python3 (3.4.3)\nimport sys\ninput = sys.stdin.readline\n\n# -------------------------------------------------------------\n# function\n# -------------------------------------------------------------\n\n\n# -------------------------------------------------------------\n# main\n# -------------------------------------------------------------\nN = int(input())\nS = input().rstrip()\n\n\nprint("Four" if S.count("Y") > 0 else "Three")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s187155669', 's821780788', 's596963729']
[3188.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[90, 140, 449]
p03424
u300968187
2,000
262,144
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`.
['#include<stdio.h>\n\nint main() {\n\tint n, Yellow_exists, i;\n\tchar str[101];\n\tscanf("%d", &n);\n\tfor (i = 0; i < n; i++) {\n\t\tscanf("%c", &str[i]);\n\t}\n\n\tYellow_exists = 0;\n\tfor (i = 0; i < n; i++) {\n\t\tif (str[i] == \'Y\') {\n\t\t\tYellow_exists = 1;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tprintf(Yellow_exists ? "Four" : "Three");\n\treturn 0;\n}', 'input()\na = input()\nprint("Four" if \'Y\' in a else "Three")\n']
['Runtime Error', 'Accepted']
['s008766709', 's179442695']
[2940.0, 2940.0]
[17.0, 19.0]
[312, 59]
p03424
u320325426
2,000
262,144
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`.
['n = int(input())\nsl = [i for i in input().split()]\nprint(["Three", "Four"][len(set(sl)) == 4]', 'sl = [i for i in -input().split()]\nprint(["Three", "Four"][len(set(sl)) == 4])', 'input()\nsl = [i for i in input().split()]\nprint(["Three", "Four"][len(set(sl)) == 4])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s117876680', 's300640867', 's280153992']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[93, 78, 85]
p03424
u322185540
2,000
262,144
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`.
["a = input()\nb = list(map(int,input()split()))\nif 'Y' in b:\n print('Four')\nelse:\n print('Three')", "a = input()\nb = list(map(int,input().split()))\nif 'Y' in b:\n print('Four')\nelse:\n print('Three')", "a = input()\nb = list(input().split())\nif 'Y' in b:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s743381467', 's988221863', 's279856755']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[101, 102, 93]
p03424
u322187839
2,000
262,144
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`.
["n=int(input())\n\na=list(input.split())\n\nif 'Y' in a:\n print('Four')\n\nelse:\n print('Three')", "n=int(input())\n\na=input().split()\n\nif 'Y' in a:\n print('Four')\n\nelse:\n print('Three')\n"]
['Runtime Error', 'Accepted']
['s564443106', 's944473298']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 92]
p03424
u327532412
2,000
262,144
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`.
['_ = input()\n*S, = map(int, input().split())\nl = len(set(S))\nif l == 4:\n print("Four")\nelse:\n print("Three")', '_ = input()\n*S, = input().split()\nl = len(set(S))\nif l == 4:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s015164586', 's102702563']
[9164.0, 9016.0]
[22.0, 29.0]
[113, 103]
p03424
u328364772
2,000
262,144
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`.
["n = input()\ns = list(map(int, input().split()))\n\nif 'Y' in s:\n print('Four')\nelse:\n print('Three')\n", "n = input()\ns = list(input().split())\n\nif 'Y' in s:\n print('Four')\nelse:\n print('Three')\n"]
['Runtime Error', 'Accepted']
['s331749887', 's604051614']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 95]
p03424
u339025042
2,000
262,144
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`.
['\nN = int(input())\n\nS = list(map(input().split()))\n\nif "Y" in S:\n print("four")\n\nelse:\n print("three")', '\nN = int(input())\n\nS = list(map(str,input().split()))\n\nif "Y" in S:\n print("four")\n\nelse:\n print("three")', 'N = int(input())\n\nS = list(map(str,input().split()))\n\nif "Y" in S:\n print("Four")\n\nelse:\n print("Three")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s604881694', 's881427628', 's418478813']
[3060.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[107, 111, 110]
p03424
u342051078
2,000
262,144
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`.
['N = int(input())\ns = map(str,input().split())\na = []\nfor i in range(N):\n a[s[i]] += 1\nans = 0\nif a[\'P\'] > 0:\n ans += 1\nif a[\'W\'] > 0:\n ans += 1\nif a[\'G\'] > 0:\n ans += 1\nif a[\'Y\'] > 0:\n ans += 1\nif ans == 3:\n print("Three")\nelse :\n print("Four")\n\n', 'N = int(input())\ns = map(str,input().split())\nif \'Y\' in s:\n print("Four")\nelse:\n print("Three")\n\n']
['Runtime Error', 'Accepted']
['s064496028', 's273712992']
[3060.0, 2940.0]
[18.0, 17.0]
[267, 103]
p03424
u342801789
2,000
262,144
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`.
["N = input()\n S = input().split()\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')", "N = input()\nS = input().split()\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s712976811', 's041526337']
[2940.0, 2940.0]
[18.0, 17.0]
[91, 87]
p03424
u344030307
2,000
262,144
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`.
["n = int(input())\ns = input().split()\n\nif Y in s:\n print('Four')\nelse:\n print('Three')", "n = int(input())\ns = input().split()\n \nif 'Y' in s:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s788438179', 's052039335']
[9136.0, 9044.0]
[20.0, 31.0]
[87, 90]
p03424
u348285568
2,000
262,144
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`.
['N=int(input())\ns=set(input())\nprint("Four" if len(s)==4 else "Three")\n', 'N=int(input())\ns=set(input())\nprint("Four" if len(s)==5 else "Three")']
['Wrong Answer', 'Accepted']
['s659942386', 's825412413']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 69]
p03424
u350049649
2,000
262,144
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`.
["N=int(input())\ndict={}\n\nfor i in range(N):\n\tdict[input()]=1\n\nans=0\nfor d in dict:\n ans+=1\n \nprint('Three' if ans==3 else 'Four')\n", "N=int(input())\nColors=list(map(str,input().split()))\ndict={}\n\nfor c in Colors:\n dict[c]=1\n\nans=0\nfor d in dict:\n ans+=1\n \nprint('Three' if ans==3 else 'Four')\n"]
['Runtime Error', 'Accepted']
['s155959868', 's557971282']
[3064.0, 2940.0]
[18.0, 17.0]
[131, 162]
p03424
u350093546
2,000
262,144
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`.
["n=int(input())\na=list(map(int,input().split()))\nb=set(a)\nif len(b)==3:\n print('Three')\nif len(b)==4:\n print('Four')\n", "n=int(input())\na=list(map(int,input().split()))\nb=set(a)\nif len(b)==3:\n print('Three')\nif len(b)==4:\n print('Four)", "n=int(input())\na=list(input().split())\nb=set(a)\nif len(b)==3:\n print('Three')\nif len(b)==4:\n print('Four')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s451359164', 's868603117', 's935943708']
[2940.0, 3188.0, 2940.0]
[17.0, 17.0, 17.0]
[118, 116, 109]
p03424
u357751375
2,000
262,144
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`.
["n = int(input())\ns = list(input().split)\nif len(set(s)) == 3:\n print('Three')\nelse:\n print('Four')", 'n = int(input())\ns = list(input().split)\n\nprint(len(set(s)))', "n = int(input())\ns = list(input().split())\ns = set(s)\nif len(s) == 3:\n print('Three')\nelse:\n print('Four')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s375533948', 's516995997', 's391920751']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[104, 60, 112]
p03424
u362560965
2,000
262,144
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`.
['N = int(input())\nS = [int(i) for i in input().split()]\n\nif "Y" in S:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\nS = [int(input()) for i in range(N)]\n\nif "Y" in S:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\nS = [i for i in input().split()]\n\nif "Y" in S:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s200929697', 's391989036', 's331159830']
[2940.0, 3056.0, 2940.0]
[17.0, 18.0, 17.0]
[111, 110, 106]
p03424
u363610900
2,000
262,144
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`.
["N = int(input())\nprint('Four' if set(input().split()) == 4 else 'Three')", "N = int(input())\nS = input()\nprint('Four' if 'Y' in S else 'Three')"]
['Wrong Answer', 'Accepted']
['s587082594', 's601535232']
[2940.0, 2940.0]
[18.0, 17.0]
[72, 67]
p03424
u363836311
2,000
262,144
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`.
["n=int(input())\nC=list(map(int, input().split()))\nc=set(C)\nif len(c)==4:\n print('Four')\nelse:\n print('Three')", "n=int(input())\nC=list(map(str, input().split()))\nc=set(C)\nif len(c)==4:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s850337554', 's168936872']
[3060.0, 2940.0]
[19.0, 17.0]
[110, 110]
p03424
u366886346
2,000
262,144
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`.
['n=int(input())\ns=list(map(input().split()))\nif s.count("Y")==0:\n print("Three")\nelse:\n print("Four")\n', 'n=int(input())\ns=list(input().split())\nif s.count("Y")==0:\n print("Three")\nelse:\n print("Four")\n']
['Runtime Error', 'Accepted']
['s525331725', 's670290458']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 102]
p03424
u373047809
2,000
262,144
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`.
['print("TFhoruere"[len(set(map(int, open(0).read().split())))-4::2])', 'print("TFhoruere"[len(set(map(int, open(0).read().split())))-3::2])', 'print("TFhoruere"[len(set(open(0).read().split()))-4::2])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s045926413', 's107785157', 's934863613']
[2940.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0]
[67, 67, 57]
p03424
u374146618
2,000
262,144
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`.
['n = int(input())\ns = input().split()\nprint(s)\n\nif "Y" in s:\n print("Four")\nelse:\n print("Three")', 'n = int(input())\ns = input().split()\n\nif "Y" in s:\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Accepted']
['s045123390', 's894631269']
[3060.0, 2940.0]
[18.0, 17.0]
[102, 93]
p03424
u379692329
2,000
262,144
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`.
['N = int(input())\nS = [input().split() for _ in range(N)]\nres = len(set(S))\nprint("Three" if res == 3 else "Four")', 'N = int(input())\nS = input().split()\nres = len(set(S))\nprint("Three" if res == 3 else "Four")']
['Runtime Error', 'Accepted']
['s459584766', 's461089600']
[2940.0, 3060.0]
[18.0, 20.0]
[113, 93]
p03424
u383450070
2,000
262,144
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`.
['n=int(input())\nlst = []\ns = input()\nprint(s)\nfor i in range(n):\n if s[i] not in lst:\n lst.append(s[i])\nif len(lst) == 3:\n print("Three")\nelse:\n print("Four")', 'n=int(input())\nlst = []\ns = input()\nfor i in range(n):\n if s[i] not in lst:\n lst.append(s[i])\nif len(lst) == 4:\n print("Three")\nelse:\n print("Four")', 'n=int(input())\nlst = []\ns = input().split(" ")\nfor i in range(n):\n if s[i] not in lst:\n lst.append(s[i])\nif len(lst) == 3:\n print("Three")\nelse:\n print("Four")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s565430936', 's596826393', 's103208291']
[2940.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0]
[163, 154, 165]
p03424
u391875425
2,000
262,144
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`.
["import sys\nn = int(input())\ns = sys.stdin.readline().rstrip().split()\nprint('THREE' if len(set(s)) == 3 else 'FOUR')", "import sys\nn = int(input())\ns = sys.stdin.readline().rstrip().split()\nprint('Three' if len(set(s)) == 3 else 'Four')"]
['Wrong Answer', 'Accepted']
['s278659269', 's619408658']
[2940.0, 2940.0]
[22.0, 18.0]
[116, 116]