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
u395202850
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("three" if len(set(map(str, input().split()))) == 3 else "four")', 'input()\nprint("Three" if len(set(map(str, input().split()))) == 3 else "Four")']
['Wrong Answer', 'Accepted']
['s766329366', 's291011669']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 78]
p03424
u399721252
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())\narare = input().split()\nif arare.count("Y") > 0:\n\tprint("FOUR")\nelse:\n\tprint("THREE")', 'n = int(input())\narare = input().split()\nif arare.count("Y") > 0:\n\tprint("Four")\nelse:\n\tprint("Three")']
['Wrong Answer', 'Accepted']
['s686544434', 's747239967']
[2940.0, 2940.0]
[17.0, 17.0]
[102, 102]
p03424
u403753892
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\nhlist = input().split()\n\ncnt = 0\n\nfor i in range(n):\n if hlist[i] == "Y":\n cnt += 1\nif cnt > 0:\n print (\'Four\')\nelse:\n print (\'Three\')\n~ ', 'n = int(input())\n\nhlist = input().split()\n\ncnt = 0\n\nfor i in range(n):\n if hlist[i] == "Y":\n cnt += 1\nif cnt > 0:\n print (\'Four\')\nelse:\n print (\'Three\')\n']
['Runtime Error', 'Accepted']
['s712434386', 's469912778']
[2940.0, 2940.0]
[17.0, 17.0]
[203, 189]
p03424
u409064224
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 = [\'P\',\'W\',\'G\',\'Y\']\nl_ = [0,0,0,0]\n\nn = int(input)\ns = list(map(int,input()))\n\nfor i in range(len(s)):\n if s[i] == \'P\':\n l_[0] += 1\n elif s[i] == \'W\':\n l_[1] += 1\n elif s[i] == \'G\':\n l_[2] += 1\n else:\n l_[3] += 1\nelse:\n for i in range(4):\n if l_[i] == 0:\n print("Three")\n break\n else:\n print("Four")\n break', 'if __name__ == "__main__":\n n = int(input())\n s = list(set(list(map(str,input().split()))))\n print("Four") if len(s) == 4 else print("Three")\n \n']
['Runtime Error', 'Accepted']
['s864088620', 's069467113']
[3064.0, 2940.0]
[17.0, 17.0]
[351, 156]
p03424
u412563426
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\ninput = sys.stdin.readline\n\nn = int(input())\ns = list(input().split())\n\nprint(s)\n\n\nflag = True\n\nfor i in s:\n if i=='Y':\n flag=False\n break\n\nif flag:\n print('Three')\nelse:\n print('Four')", "import sys\ninput = sys.stdin.readline\n\nn = int(input())\ns = list(input().split())\n\nflag = True\n\nfor i in s:\n if i=='Y':\n flag=False\n break\n\nif flag:\n print('Three')\nelse:\n print('Four')"]
['Wrong Answer', 'Accepted']
['s673427487', 's124461554']
[3060.0, 3060.0]
[19.0, 17.0]
[219, 208]
p03424
u416758623
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()\nfor i in range(N+1):\n a = input()\n s.add(a)\nif(len(s) == 3):\n print("Three")\nelse:\n print("Four")', 'N = int(input())\ns = set()\nfor i in range(N):\n a = input()\n s.add(a)\nprint(len(s))', 'N = int(input())\ns = set()\nfor i in range(N):\n a = input()\n s.add(a)\nif(len(s) == 3):\n print("Three")\nelse:\n print("Four")', 'N = int(input())\ns = set(map(str,input().split()))\nprint(s)\nif(len(s) == 3):\n print("Three")\nelse:\n print("Four")\n', 'N = int(input())\ns = set(map(str,input().split()))\nif(len(s) == 3):\n print("Three")\nelse:\n print("Four")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s017190662', 's205519805', 's858594767', 's889493549', 's426061751']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 18.0, 17.0, 17.0, 17.0]
[132, 88, 130, 120, 111]
p03424
u419963262
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=list(map(int,input().split()))\nans=0\nfor i in range(n):\n if i == "P":\n ans=1\nprint(["Three","Four"][ans])', 'n=int(input())\nlis=list(input().split())\nans=0\nfor i in range(n):\n if lis[i] == "Y":\n ans=1\nprint(["Three","Four"][ans])\n']
['Runtime Error', 'Accepted']
['s815373965', 's393838234']
[9116.0, 9124.0]
[23.0, 28.0]
[128, 125]
p03424
u425834921
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())\nflag = 0\nfor i in range(N):\n S = input()\n if S == "Y":\n flag += 1\nif flag > 0:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\nS = map(input().split())\nflag = 0\nfor i in range(N):\n if S[i] == "Y":\n flag += 1\nif flag > 0:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\nS = list(input().split())\nflag = 0\nfor i in range(N):\n if S[i] == "Y":\n flag += 1\nif flag > 0:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s014930574', 's942466606', 's721889323']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[139, 153, 154]
p03424
u432805419
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 = int(input())\nb = input().split()\nc = list(set(b))\n\nif len(b) == 4:\n print("Four")\nelse:\n print("Three")', 'a = int(input())\nb = input().split()\nc = list(set(b))\n\nif len(c) == 4:\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Accepted']
['s488648853', 's815043317']
[2940.0, 2940.0]
[17.0, 18.0]
[109, 109]
p03424
u437215432
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`.
["# ABC089B\n\nn = int(input())\ns = list(map(int, input().split()))\nif len(set(s)) == 4:\n print('Three')\nelse:\n print('Four')\n", "# ABC089B\n\nn = int(input())\ns = list(map(int, input().split)))\nif len(set(s)) == 4:\n print('Three')\nelse:\n print('Four')\n", "n = int(input())\ns = list(input().split())\nif len(set(s)) == 3:\n print('Three')\nelse:\n print('Four')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s318336579', 's807531777', 's659713618']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[128, 127, 107]
p03424
u440161695
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 sum(["Y" if in input().split() for i in range(n)])!=0 else "Three")', 'n=int(input())\nA=sorted(list(input().split()))\nif A[-1]=="Y":\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s085996172', 's637570045']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 100]
p03424
u445511055
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\n\ndef main():\n """Function."""\n n = int(input())\n s = list(map(str, input().split()))\n\n check = set()\n for i in range(n):\n check.append(s[i])\n\n if len(check) == 3:\n print("Three")\n else:\n print("Four")\n\n\nif __name__ == "__main__":\n main()\n', '# -*- coding: utf-8 -*-\n\n\ndef main():\n """Function."""\n n = int(input())\n s = list(map(str, input().split()))\n\n check = set()\n for i in range(n):\n check.add(s[i])\n\n if len(check) == 3:\n print("Three")\n else:\n print("Four")\n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Accepted']
['s300014166', 's948968520']
[3060.0, 3060.0]
[18.0, 18.0]
[308, 305]
p03424
u445922306
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 = input()\nchar_list = list(S.split(" "))\nresult = "Three"\nfor i in range(N):\n if char_list[i] == "Y":\n result = "Four"\nprint(result)', 'N = int(input())\nS = input()\nchar_list = list(S.split(" "))\nresult = "Three"\nfor i in range(N):\n if char_list[i] == "Y":\n result = "Four"\nprint(result)']
['Runtime Error', 'Accepted']
['s791220591', 's790257907']
[2940.0, 2940.0]
[17.0, 18.0]
[156, 161]
p03424
u446711904
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,*s=map(int,open(0).read().split())\nprint('TFhoruere'[len(set(s))==4::2])", "_,*s=map(str,open(0).read().split())\nprint('TFhoruere'[len(set(s))==4::2])"]
['Runtime Error', 'Accepted']
['s201423821', 's527918082']
[9172.0, 9036.0]
[22.0, 26.0]
[74, 74]
p03424
u451017206
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()\nl = len(set(input().split()))\nif l == 3:print('Three')\nif l == 4:print('Four')\n"]
['Wrong Answer', 'Accepted']
['s752217000', 's748544145']
[3060.0, 2940.0]
[19.0, 17.0]
[40, 87]
p03424
u462329577
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`.
['// space 区切りの文字を入力として、Yが存在すれば、Four, else Threeを出力\n\n\nusing namespace std;\nint main(){\n int n;\n cin >> n;\n char s[n]; // 配列の初期化はs[n] n:要素数\n int ans = 0; // if ans == 0, Three\n for (int i=0;i < n ;i++){\n cin >> s[i];\n //cout << s[i];\n //charで比較するときは\'\'にする、""だと文字列\n if ( s[i] == \'Y\' ){\n ans = 1;\n break;\n }\n }\n if ( ans == 0){\n cout << "Three" << endl;\n }\n else{\n cout << "Four" << endl;\n }\n}\n \n', 'n = int(input())\ns = list(map(str,input().split()))\nans = 0\nfor i in range(len(s)):\n if s[i] == "Y":\n ans = 1\n break\nif ans == 0:\n print("Three")\nelse:\n print("Four")\n']
['Runtime Error', 'Accepted']
['s914363023', 's491144902']
[2940.0, 2940.0]
[17.0, 17.0]
[559, 190]
p03424
u474270503
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=map(int, input().split())\nprint("Four" if "Y" in a else "Three")\n', 'N=int(input())\na=input().split()\nprint("Four" if "Y" in a else "Three")\n']
['Runtime Error', 'Accepted']
['s312086549', 's592303688']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 72]
p03424
u474423089
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(' ')))\nif len(set(s))==4:\n print('Four')\nelse:\n print('Three')", "N=input()\ns=len(set(list(input().split(' '))))\nif s==4:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s570054903', 's004145237']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 98]
p03424
u482157295
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 = input().split()\nflag = "syurui_3"\nfor i in hina:\n if i == "y":\n flag = "syurui_4"\nif flag == "syurui_3":\n print("Three")\nelse:\n print("Four")', 'N = int(input())\nhina = input().split()\nflag = "syurui_3"\nfor i in hina:\n if i == "Y":\n flag = "syurui_4"\nif flag == "syurui_3":\n print("Three")\nelse:\n print("Four")\n']
['Wrong Answer', 'Accepted']
['s332238824', 's871351571']
[2940.0, 2940.0]
[17.0, 17.0]
[171, 172]
p03424
u499259667
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")\n', 'n=input()\nprint("Four" if "Y" in input() else "Three")\n']
['Wrong Answer', 'Accepted']
['s881392168', 's256158205']
[2940.0, 2940.0]
[17.0, 17.0]
[45, 55]
p03424
u500207661
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 = input()\nprint(len(collections.Counter(input().replace(" ",""))))', 'import collections\nn = input()\nans = len(collections.Counter(input().replace(" ","")))\nif ans == 4: print("Four")\nelse: print("Three")']
['Wrong Answer', 'Accepted']
['s378794225', 's607175761']
[3444.0, 3316.0]
[92.0, 20.0]
[87, 134]
p03424
u500279510
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(int,input().split())]\ns_s = set(s)\nprint(len(s_s))', "n = int(input())\ns = list(input().split())\ns_s = set(s)\nif len(s_s)==4:\n print('Four')\nelse:\n print('Three')"]
['Wrong Answer', 'Accepted']
['s318835807', 's569535509']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 114]
p03424
u504836877
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 = input()\n\nans = "Three"\nfor i in range(len(S)):\n if S[i] == "Y":\n ans = "Four"\n break\nprint(ans)', 'N = int(input())\nS = [s for s in input().split()]\n\nans = "Three"\nfor i in range(N):\n if S[i] == "Y":\n ans = "Four"\n break\nprint(ans)']
['Wrong Answer', 'Accepted']
['s002876969', 's235393904']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 139]
p03424
u506858457
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())\nFlag=False\nfor i in range(N):\n C=input()\n if C=='Y':\n Flag=True\n \nprint('Four' if Flag else 'Three')\n ", 'input()\nprint("Four" if "Y" in input() else "Three")']
['Runtime Error', 'Accepted']
['s256665510', 's594824645']
[2940.0, 2940.0]
[17.0, 17.0]
[126, 52]
p03424
u513081876
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(int, input().split()))\nif len(S) == 3:\n print('Three')\nelse:\n print('Four')", "N = int(input())\nS = [i for i in input().split()]\nif len(set(S)) == 4:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s890327237', 's412205170']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 113]
p03424
u514118270
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\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\ndef s(): return input()\ndef i(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nINF = 10**9\nmod = 10**9+7\n\ns = [0]*4\nN = i()\nS = l()\nfor i in range(N):\n if S[i] == 'P':\n s[0] = 1\n if S[i] == 'W':\n s[1] = 1\n if S[i] == 'G':\n s[2] = 1\n if S[i] == 'Y':\n s[3] = 1\nprint(sum(s))", "import sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\ndef s(): return input()\ndef i(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nINF = 10**9\nmod = 10**9+7\n\ns = [0]*4\nN = i()\nS = l()\nfor i in range(N):\n if S[i] == 'P':\n s[0] = 1\n if S[i] == 'W':\n s[1] = 1\n if S[i] == 'G':\n s[2] = 1\n if S[i] == 'Y'\n s[3] = 1\nprint(sum(s))", "import sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\ndef s(): return input()\ndef i(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nINF = 10**9\nmod = 10**9+7\n\ns = [0]*4\nN = i()\nS = L()\nfor i in range(N):\n if S[i] == 'P':\n s[0] = 1\n if S[i] == 'W':\n s[1] = 1\n if S[i] == 'G':\n s[2] = 1\n if S[i] == 'Y':\n s[3] = 1\nif sum(s) == 3:\n print('Three')\nelse:\n print('Four')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s274747312', 's838035055', 's385003460']
[10104.0, 9016.0, 10032.0]
[29.0, 22.0, 35.0]
[657, 656, 702]
p03424
u514894322
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()\ns=set(map(input().split()))\nif len(s) == 3:\n print('Three')\nelse:\n print('Four')", "_=input()\ns=set(input().split())\nif len(s) == 3:\n print('Three')\nelse:\n print('Four')"]
['Runtime Error', 'Accepted']
['s013737323', 's654953559']
[2940.0, 3064.0]
[17.0, 17.0]
[92, 87]
p03424
u518064858
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=iny(input())\na=set(list(input().split()))\nif len(a)==3:\n print("Three")\nelse:\n print("Four")\n', 'n=iny(input())\na=set(list(input().split())\nif len(a)==3:\n print("Three")\nelse:\n print("Four")', 'n=int(input())\na=set(list(input().split()))\nif len(a)==3:\n print("Three")\nelse:\n print("Four")\n\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s101889416', 's644421137', 's068213268']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[101, 99, 102]
p03424
u521866787
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('Three' if len(set(map(int, input().split())))==3 else 'Four')", "_=input()\nprint('Three' if set(map(int, input().split()))==3 else 'Four')", "_=input()\nprint('Three' if len(set(map(str, input().split())))==3 else 'Four')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s159133088', 's232020607', 's736960226']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[78, 73, 78]
p03424
u526818929
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()))\nif "Y" in S == True:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\nS = list(map(str, input().split()))\n\nif \'Y\' in S:\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Accepted']
['s222702293', 's944192777']
[9064.0, 9052.0]
[26.0, 29.0]
[116, 109]
p03424
u528720841
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())\nv = []\nfor i in range(N):\n s = input()\n if !(s in v):\n v.append(s);\n\nif len(v) == 3:\n print("Three")\nelse:\n print("Four")', 'N = int(input())\nv = []\nS = input().split()\n\nfor s in S:\n if not s in v:\n v.append(s);\n\nif len(v) == 3:\n print("Three")\nelse:\n print("Four")']
['Runtime Error', 'Accepted']
['s224670845', 's134721904']
[2940.0, 2940.0]
[17.0, 17.0]
[157, 156]
p03424
u532966492
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();"TFhoruere"[len(set(input().split()))>3::2]', 'input();print("TFhoruere"[len(set(input().split()))>3::2])']
['Wrong Answer', 'Accepted']
['s217635018', 's046921653']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 58]
p03424
u535659144
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().split())\nprint(len(s))', 'n=int(input())\ns=set(input().split())\nprint("Four" if len(s)==4 else "Three")']
['Wrong Answer', 'Accepted']
['s450492459', 's463729787']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 77]
p03424
u543954314
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()\nif "Y" in s:\n print("Four")\nelse:\n print("Three")', 'n = int(input())\ns = input().split()\nif "Y" in s:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s760521587', 's688142224']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 88]
p03424
u548303713
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())\nprint(s)\nprint("Four" if "Y" in s else "Three")', 'n=int(input())\ns=list(input().split())\nprint("Four" if "Y" in s else "Three")']
['Wrong Answer', 'Accepted']
['s852485088', 's469456536']
[3064.0, 2940.0]
[17.0, 17.0]
[86, 77]
p03424
u548514780
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(str, input().split()))\ncounter=0\nif 'P', 'W', 'G', 'Y' in A:\n print('Four')\nelse:\n print('Three')", "N=int(input())\nA=list(map(str, input().split()))\ncolor=['P','W','G','Y']\ncounter=0\nfor i in color:\n if i in A:\n counter+=1\nif counter==4:\n print('Four')\nelse:\n print('Three')\n"]
['Runtime Error', 'Accepted']
['s670354565', 's104138456']
[8820.0, 9168.0]
[29.0, 28.0]
[125, 181]
p03424
u548545174
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\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']
['s020708675', 's697181394']
[2940.0, 2940.0]
[18.0, 19.0]
[109, 99]
p03424
u549497563
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(map(str,input().split()))\nif "Y" in s:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s141208336', 's549039294']
[2940.0, 3064.0]
[18.0, 17.0]
[107, 107]
p03424
u551109821
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 len(set(S)) == 4:\n print('Four')\nelif len(set(S)) == 3:\n print('Three')", "N = int(input())\nS = list(map(str,input().split()))\nif len(set(S)) == 4:\n print('Four')\nelif len(set(S)) == 3:\n print('Three')"]
['Runtime Error', 'Accepted']
['s040869028', 's664141421']
[2940.0, 3060.0]
[17.0, 17.0]
[132, 132]
p03424
u556589653
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()\nK = set(S)\np = list(k)\nif len(p) == 3:\n print("Three")\nelif len(p) == 4:\n print("Four")', 'N = int(input())\nS = list(map(str,input().split()))\ncount_P = 0\ncount_W = 0\ncount_G = 0\ncount_Y = 0\nans = 0\nfor i in range(N):\n if S[i] == "P":\n if count_P == 0:\n ans += 1\n count_P += 1\n else:\n ans += 0\n if S[i] == "W":\n if count_W == 0:\n ans += 0\n count_W += 1\n else:\n ans += 0\n if S[i] == "G":\n if count_G == 0:\n ans += 1\n count_G += 1\n else:\n ans += 0\n if S[i] == "Y":\n if count_Y == 0:\n ans += 1\n count_Y += 1\n else:\n ans += 0\nif ans == 3:\n print("Three")\nelse:\n print("Four")', 'N = int(input())\nS = input().split()\nK = set(S)\nk = list(K)\nif len(k) == 3:\n print("Three")\nelif len(k) == 4:\n print("Four")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s398132432', 's726402315', 's014938947']
[2940.0, 3188.0, 2940.0]
[17.0, 19.0, 17.0]
[126, 618, 126]
p03424
u568130550
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())\nD = [input() for _ in range(N)]\nprint('Four' if len(set(D))==4 else 'Three')", 'input()\nprint("Four" if "Y" in input() else "Three")']
['Runtime Error', 'Accepted']
['s437631622', 's277292443']
[8972.0, 9004.0]
[25.0, 27.0]
[93, 52]
p03424
u571128845
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`.
["from math import *\n\nn = int(input())\ns = input()\nd = {'P': 0, 'W': 0, 'G': 0, 'Y': 0}\nfor x in range(len(s)):\n d[s[x]] += 1\nprint('Four' if all(map(lambda x: x > 0, d.values())) else 'Three')\n", "from math import *\n\nn = int(input())\ns = input()\nb = False\nfor x in range(len(s)):\n if x is 'Y':\n b = True\n break\nprint('Four' if b else 'Three')\n", "from math import *\n\nn = int(input())\ns = input()\nb = False\nfor x in range(len(s)):\n if s[x] is 'Y':\n b = True\n break\nprint('Four' if b else 'Three')\n"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s227127540', 's372601404', 's007198856']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[193, 153, 156]
p03424
u571445182
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\nN = int(input())\n\nTmp = []\nTmp = input().rstrip().split(' ')\n\nnAns = [ 0 for i in range(4)]\nFlag = 0\nfor i in range(N):\n S = Tmo[i]\n if S=='G':\n Flag = 1\n\nif Flag==1:\n print('Four')\nelse:\n print('Three')\n\n\n", "N = int(input())\n \nTmp = []\nTmp = input().rstrip().split(' ')\n \nnAns = [ 0 for i in range(4)]\nFlag = 0\nfor i in range(N):\n S = Tmp[i]\n if S=='Y':\n Flag = 1\n\nif Flag==1:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s151094124', 's036386004']
[3060.0, 3064.0]
[17.0, 17.0]
[215, 212]
p03424
u580093517
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().split())\nprint(len(s))', 'n = int(input())\nprint("Three" if "Y" in input() else "Four")', 'n = int(input())\nprint("Four" if "Y" in input() else "Three")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s021033001', 's318883238', 's068119504']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[55, 61, 61]
p03424
u580362735
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(len(set(S)))', 'N = int(input())\nS = list(map(int,input().split()))\nprint(len(set(S)))', "N = int(input())\nS = list(map(str,input().split()))\nprint('Three') if len(set(S)) == 3 else print('Four')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s228005499', 's602326811', 's762372878']
[3064.0, 2940.0, 3060.0]
[17.0, 17.0, 19.0]
[70, 70, 105]
p03424
u591295155
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()))\nprint(len(set(s)))\n', 'N = int(input())\ns = list(map(str, input().split()))\nprint(len(set(s)))\n', 'N=input()\nprint(["Four","Three"][len(set(list(map(str, input().split()))))==3])']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s362939003', 's474670152', 's305388190']
[3060.0, 3060.0, 2940.0]
[18.0, 19.0, 17.0]
[67, 72, 79]
p03424
u596276291
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`.
['#!/usr/bin/python3\n\nfrom collections import defaultdict, Counter\nfrom itertools import product, groupby, count, permutations, combinations\nfrom math import pi, sqrt\nfrom collections import deque\nfrom bisect import bisect, bisect_left, bisect_right\nfrom string import ascii_lowercase\nfrom functools import lru_cache\nimport sys\nsys.setrecursionlimit(10000)\nINF = float("inf")\nYES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"\ndy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]\n\n\ndef inside(y, x, H, W):\n return 0 <= y < H and 0 <= x < W\n\n\ndef main():\n N = int(input())\n S = list(map(int, input().split()))\n\n if "Y" in S:\n print("Four")\n else:\n print("Three")\n\nif __name__ == \'__main__\':\n main()\n', '#!/usr/bin/python3\n\nfrom collections import defaultdict, Counter\nfrom itertools import product, groupby, count, permutations, combinations\nfrom math import pi, sqrt\nfrom collections import deque\nfrom bisect import bisect, bisect_left, bisect_right\nfrom string import ascii_lowercase\nfrom functools import lru_cache\nimport sys\nsys.setrecursionlimit(10000)\nINF = float("inf")\nYES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"\ndy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]\n\n\ndef inside(y, x, H, W):\n return 0 <= y < H and 0 <= x < W\n\n\ndef main():\n N = int(input())\n S = list(input().split())\n\n if "Y" in S:\n print("Four")\n else:\n print("Three")\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Accepted']
['s396292812', 's688328713']
[4088.0, 3960.0]
[33.0, 26.0]
[730, 720]
p03424
u604262137
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`.
["araresuu = input()\nsikou = input()\nkaisuu = 0\nfor i in sikou:\n if i == 'Y':\n print('four')\n break\n kaisuu += 1\nif kaisuu == len(sikou):\n print('Three')", "araresuu = int(input())\nsikou = input().split()\nkaisuu = 0\n\nfor i in sikou:\n if i == 'Y':\n print('Four')\n break\n kaisuu += 1\n\nif kaisuu == araresuu:\n print('Three')\n"]
['Wrong Answer', 'Accepted']
['s924587308', 's604578486']
[2940.0, 2940.0]
[17.0, 17.0]
[174, 188]
p03424
u604693716
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())\nstr=input()\nans=3\nfor i in range(0,n):\n if str[i]=="Y":\n ans=4\nprint(ans)', 'n=int(input())\nstr=input().split(" ")\nans=3\nfor i in range(0,n):\n if str[i]=="Y":\n ans=4\nif ans==4:\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Accepted']
['s943708323', 's335326443']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 152]
p03424
u607075479
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());print("Three" if len(set(map(input().split())))==3 else "Four")', 'N=int(input());print("Three" if len(set(map(int,input().split())))==3 else "Four")', 'N=int(input());print("Three" if len(set(input().split()))==3 else "Four")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s890186978', 's953722410', 's910499147']
[9016.0, 9088.0, 9152.0]
[20.0, 22.0, 30.0]
[78, 82, 73]
p03424
u609061751
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\ninput = sys.stdin.readline\nN = int(input())\nS = input().rstrip().split()\nfrom collections import Counter\nc = Counter(S)\nif len(c.keys) == 4:\n print("Four")\nelse:\n print("Three")', 'import sys\ninput = sys.stdin.readline\nN = int(input())\nS = input().rstrip().split()\nfrom collections import Counter\nc = Counter(s)\nif len(c.keys) == 4:\n print("Four")\nelse:\n print("Three")', 'import sys\ninput = sys.stdin.readline\nN = int(input())\nS = input().rstrip().split()\nfrom collections import Counter\nc = Counter(S)\nif len(c.keys()) == 4:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s190929874', 's847348577', 's985707196']
[3316.0, 3316.0, 3316.0]
[21.0, 20.0, 21.0]
[194, 194, 196]
p03424
u609255576
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()\narare = ["P", "W", "G", "Y"]\n\n\ndef hina(S):\n if S in arare:\n arare.remove(S)\n return len(arare)\n\n\nmap(hina, s)\nprint("Four") if (4 - len(arare) == 4) else print("Three")\n', 'n = int(input())\ns = input().split()\narare = ["P", "W", "G", "Y"]\n\n\ndef hina(S):\n if S in arare:\n arare.remove(S)\n return len(arare)\n\n\nfor i in range(n):\n hina(s[i])\nprint("Four") if (4 - len(arare) == 4) else print("Three")\n']
['Wrong Answer', 'Accepted']
['s046897631', 's187707604']
[2940.0, 2940.0]
[17.0, 18.0]
[220, 241]
p03424
u622011073
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','Three'][len(set(list(input().split())))-4])", "input();print(['Four','Three'][len(set(list(input().split())))-4])"]
['Runtime Error', 'Accepted']
['s731741372', 's065774581']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 66]
p03424
u623349537
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(map(int, input().split())\nif "Y" in s:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\ns = list(input().split())\nif "Y" in s:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s033127725', 's626770870', 's557049517']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[108, 107, 98]
p03424
u626337957
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())\narares = list(map(int, input().split()))\nfour = False\nfor arare in arares:\n if arare == 'Y':\n four = True\n break\nif four:\n print('Four')\nelse:\n print('Three')", "N = int(input())\narares = list(input().split())\nfour = False\nfor arare in arares:\n if arare == 'Y':\n four = True\n break\nif four:\n print('Four')\nelse:\n print('Three')\n"]
['Runtime Error', 'Accepted']
['s824291711', 's209669261']
[2940.0, 2940.0]
[17.0, 17.0]
[184, 175]
p03424
u626468554
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\nfor i in range(n):\n if s[i] == "Y":\n print("four")\n break\n elif i == n-1:\n print("Tree")', 'n = int(input())\ns = list(input().split())\n\nfor i in range(n):\n if s[i] == "Y":\n print("four")\n break\n elif i == n-1:\n print("Tree")', 'n = int(input())\ns = list(input().split())\n\nfor i in range(n):\n if s[i] == "Y":\n print("Four")\n break\n elif i == n-1:\n print("Three")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s385992890', 's404739951', 's798361429']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[159, 167, 161]
p03424
u627417051
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()))\ny = 0\nfor i in range(N):\n\tif S[i] == "Y":\n\t\ty = 1\nif y == 0:\n\tprint("Three")\nelse:\n\tprint("Four")', 'N = int(input())\nS = list(input().split())\ny = 0\nfor i in range(N):\n\tif S[i] == "Y":\n\t\ty = 1\nif y == 0:\n\tprint("Three")\nelse:\n\tprint("Four")']
['Runtime Error', 'Accepted']
['s643691979', 's797806648']
[2940.0, 2940.0]
[17.0, 17.0]
[150, 140]
p03424
u629540524
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())\nx = sorted(map(int,input().split()))\nx.reverse()\na = 0\nb = 0\nfor i in range(n):\n if i%2==0:\n a+=x[i]\n else:\n b+=x[i]\nprint(a-b)', 'n = int(input())\nx = list(reversed(sorted(map(int,input().split()))))\na = 0\nb = 0\nfor i in range(n):\n if i%2==0:\n a+=x[i]\n else:\n b+=x[i]\nprint(a-b)', 'n = int(input())\nx = sorted(map(int,input().split()))\nx.reverse()\na = 0\nb = 0\nfor i in range(n):\n if i%2==0:\n a+=x[i]\n else:\n b+=x[i]\nprint(a-b)', "n = int(input())\nx = set(input().split())\nif len(x)==3:\n print('Three')\nelse:\n print('Four')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s240218893', 's530428198', 's620893316', 's443270172']
[9176.0, 9124.0, 9172.0, 9068.0]
[24.0, 23.0, 22.0, 29.0]
[164, 168, 164, 98]
p03424
u638057737
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 = set()\nfor i in range(N):\n A.add(input())\nif len(A) == 3:\n print(“Three”)\nelse:\n print(“Four”)', 'N = int(input())\nA = set(input().split())\nif len(A) == 3:\n print(“Three”)\nelse:\n print(“Four”)', 'N = int(input())\nA = set(input().split())\nif len(A) == 3:\n print("Three")\nelse:\n print("Four")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s430083666', 's508444212', 's792398607']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[128, 106, 99]
p03424
u642418876
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()))\ncount=0\nfor i in range(n):\n if 'Y' in s[i]:\n count+=1\nif count==1:\n print('Four')\nelse:\n print('Three')\n ", "n=int(input())\ns=list(map(str,input().split()))\nif 'Y' in s:\n print('Four')\nelse:\n print('Three')\n "]
['Wrong Answer', 'Accepted']
['s196669394', 's504005829']
[2940.0, 2940.0]
[17.0, 17.0]
[160, 102]
p03424
u644907318
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()))\nind = 0\nfor i in range(N):\n if S[i]=="Y":\n ind = 1\n break\nif ind==1:\n print("Four")\nelse:\n print("three")', 'N = int(input())\nS = list(input().split())\nind = 0\nfor i in range(N):\n if S[i]=="Y":\n ind = 1\n break\nif ind==1:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s441925669', 's317592593']
[2940.0, 3060.0]
[17.0, 19.0]
[180, 171]
p03424
u652081898
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()))\n\nif "Y" in list:\n print("Four")\nelse:\n print("Three")', 'n = int(input())\nlist = list(map(str, input().split()))\n\nif "Y" in list:\n print("Four")\nelse:\n print("Three")\n']
['Runtime Error', 'Accepted']
['s248010016', 's911797805']
[2940.0, 2940.0]
[17.0, 17.0]
[115, 116]
p03424
u652656291
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())\nif s in 'Y':\n print('Four')\nelse:\n print('Three')", "n = int(input())\ns = list(map(str,input().split()))\nif s in 'Y':\n print('Four')\nelse:\n print('Three')", "n = int(input())\ns = map(str,input().split())\nif 'Y' in s:\n print('Four')\nelse:\n print('Three')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s604485205', 's624981619', 's569571346']
[2940.0, 3188.0, 2940.0]
[18.0, 19.0, 18.0]
[97, 103, 98]
p03424
u657541767
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 = [str(x) for x in input().split()]\nif set(s) == 3:\n print('Three')\nelse:\n print('four')\n", "n = int(input())\ns = [str(x) for x in input().split()]\nif len(set(s)) == 3:\n print('Three')\nelse:\n print('Four')\n"]
['Wrong Answer', 'Accepted']
['s729092303', 's224400877']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 119]
p03424
u657913472
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();print("Four"if len(Set(input().split()))>3 else"Three")', 'input();print("Four"if len(set(input().split()))>3 else"Three")']
['Runtime Error', 'Accepted']
['s431880517', 's102463907']
[2940.0, 2940.0]
[17.0, 17.0]
[63, 63]
p03424
u663014688
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\nfor i in range(len(S-1)):\n if S[i] == \'Y\':\n print("Four")\n break\nprint("Three")', 'N = int(input())\nS = list(map(str, input().split()))\n\nfor i in range(len(S)-1):\n if S[i] == \'Y\':\n print("Four")\n exit()\nprint("Three")']
['Runtime Error', 'Accepted']
['s197130028', 's704364413']
[2940.0, 2940.0]
[17.0, 17.0]
[150, 151]
p03424
u667024514
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=list(map(int,input().split()))\nif "Y" in lis:\n print("Four")\nelse:\n print("Three")', 'n=int(input())\nlis=list(map(int,input().split()))\nif lis.count("Y"):\n print("Four")\nelse:\n print("Three")\n', 'n=int(input())\nlis=list(map(str,input().split()))\nif "Y" in lis:\n print("Four")\nelse:\n print("Three")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s586644916', 's637036116', 's106727048']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[103, 108, 104]
p03424
u669770658
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 = [str(i) for i in input().split()]\n\nprint("Three" if len(set(s)) ==3 else "Four" if len(set(s)) == 4)', 'n = int(input())\ns = [str(i) for i in input().split()]\n \nprint("Three" if len(list(set(s))) == 3 else "Four" if len(list(set(s))) == 4)', 'def abc089_b():\n n = int(input())\n s = [str(i) for i in input().split()]\n\n return "Three" if len(set(s)) == 3 else "Four" if len(set(s)) == 4 else "ERROR"\n\n\nif __name__ == \'__main__\':\n print(abc089_b())\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s644771384', 's824243255', 's227286543']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[121, 135, 215]
p03424
u690037900
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`.
['Row = int(input())\na = list(map(str,input().split(" ")))\nprint(len(set(a)))', 'int(input())\nb = ["One","Two","Three","Four"]\na = list(map(str,input().split(" ")))\nprint(b[len(set(a))-1])']
['Wrong Answer', 'Accepted']
['s638393841', 's389740374']
[2940.0, 2940.0]
[17.0, 20.0]
[75, 107]
p03424
u700278227
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 = input().split()\nprint(len(set(c)))', 'n = int(input())\nc = input().split()\nans = len(set(c))\nif ans == 3:\n print("Three")\nelse:\n print("Four")']
['Wrong Answer', 'Accepted']
['s594474893', 's965909655']
[2940.0, 2940.0]
[17.0, 17.0]
[55, 110]
p03424
u701017915
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())\narare = input().split()\nprint(arare)\ny = 0\nfor i in range(len(arare)):\n if arare[i] == "Y":\n y += 1\n break\nif y == 1:\n print("Four")\nelse:\n print("Three")\n', 'N = int(input())\narare = input().split()\ny = 0\nfor i in arare:\n if arere[i] == "Y":\n y += 1\n break\nif y == 1:\n print("Four")\nelse:\n print("Three")', 'N = int(input())\narare = input().split()\ny = 0\nfor i in arare:\n if arare[i] == "Y":\n y += 1\n break\nif y == 1:\n print("Four")\nelse:\n print("Three")\n', 'N = int(input())\narare = input().split()\ny = 0\nfor i in range(len(arare)):\n if arare[i] == "Y":\n y += 1\n break\nif y == 1:\n print("Four")\nelse:\n print("Three")\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s156875434', 's748702592', 's813472378', 's546981753']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[181, 155, 156, 168]
p03424
u705418271
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()))\nfor i in range(n):\n if s[i]=="Y":\n print("FOUR")\n exit()\nprint("Three")', 'n=int(input())\ns=list(map(str,input().split()))\nif "Y" in s:\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Accepted']
['s090380848', 's258300404']
[9060.0, 8920.0]
[27.0, 29.0]
[126, 99]
p03424
u706433263
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=[map(int,input().split())]\n\nfor i in range (n):\n if l[i]=='Y':\n print('Four')\n exit()\nprint('Three')", "n=int(input())\nl=list(map(str,input().split()))\n\nfor i in range (n):\n if l[i]=='Y':\n print('Four')\n exit()\nprint('Three')\n\n\n"]
['Runtime Error', 'Accepted']
['s853315431', 's043360818']
[2940.0, 2940.0]
[17.0, 17.0]
[124, 131]
p03424
u711768617
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(len(set(input().split()))) \n\n', "_ = input()\nprint('Four' if len(set(input().split())) == 4 else 'Three')"]
['Wrong Answer', 'Accepted']
['s601292179', 's946930372']
[9008.0, 9060.0]
[28.0, 26.0]
[52, 72]
p03424
u722535636
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(map(int,input().split()))\nprint('Four' if 'Y' in l else 'Three')", "n=int(input())\nl=list(map(str,input().split()))\nprint('Four' if 'Y' in l else 'Three')"]
['Runtime Error', 'Accepted']
['s776961181', 's698101455']
[2940.0, 2940.0]
[17.0, 17.0]
[86, 86]
p03424
u729535891
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('Three' if len(set(s)) == 3 else 'Four')", "n = int(input())\ns = input().split()\nprint('Three' if len(set(s)) == 3 else 'Four')"]
['Runtime Error', 'Accepted']
['s875369863', 's672389732']
[2940.0, 2940.0]
[18.0, 17.0]
[99, 83]
p03424
u731362892
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())\narare=list(input())\nif Y in arare:\n print('Four')\nelse:\n print('Three')", "N=int(input())\narare=list(input())\nif 'Y' in arare:\n print('Four')\nelse:\n print('Three')"]
['Runtime Error', 'Accepted']
['s399382420', 's500696742']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 90]
p03424
u743154453
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())\nfukuro = list(map(str,input().split()))\n\ntypes = 'Three'\nfor i in range(len(fukuro)):\n if fukuro[i] == 'Y':\n tyeps = 'Four'\n break\nprint(types)", "n = int(input())\nfukuro = list(map(str,input().split()))\ntypes = 'Three'\nfor i in range(len(fukuro)):\n if fukuro[i] == 'Y':\n types = 'Four'\n break\nprint(types)"]
['Wrong Answer', 'Accepted']
['s647260628', 's081830007']
[3060.0, 3060.0]
[19.0, 17.0]
[167, 166]
p03424
u754022296
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()\nif "Y" in input():\n print("Four")\nelse:\n print("Three)', 'n=input()\nif "Y" in input():\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s661233886', 's979150217']
[2940.0, 2940.0]
[18.0, 17.0]
[66, 67]
p03424
u757030836
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\nif set(s) <= 3:\n print("Three")\n \nelse: \n print("Four")\n \n ', 'n = int(input())\n\ns = list(input().split())\n\nif len(set(s)) <= 3:\n print("Three")\n \nelse: \n print("Four")\n \n \n\n']
['Runtime Error', 'Accepted']
['s849509988', 's036366188']
[2940.0, 2940.0]
[17.0, 17.0]
[132, 130]
p03424
u759412327
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 = int(input())\n\nif "Y" in input():\n print("Four")\nelse:\n print("Three")']
['Wrong Answer', 'Accepted']
['s222446417', 's241421304']
[2940.0, 8992.0]
[19.0, 26.0]
[40, 75]
p03424
u760831084
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(list(input().split()))\n\nprint('Three' if len(S) else 'Four')", "N = int(input())\nS = input().split()\n\nif 'Y' in S:\n print('Four')\nelse:\n print('Three')"]
['Wrong Answer', 'Accepted']
['s403328402', 's642065592']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 93]
p03424
u762540523
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();s=list(map(int, input().split()));print("TFhoruere"["Y"in s::2])', '_=input();s=input().split();print("TFhoruere"["Y"in s::2])']
['Runtime Error', 'Accepted']
['s343871867', 's505691956']
[2940.0, 3064.0]
[17.0, 19.0]
[74, 58]
p03424
u770077083
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 = int(input())\nl = list(map(int,input().split()))\nprint("Four" if l.count("Y")>0 else "Three")', 'i = int(input())\nl = input().split()\nprint("Four" if l.count("Y")>0 else "Three")']
['Runtime Error', 'Accepted']
['s871609765', 's601622725']
[9120.0, 9104.0]
[24.0, 28.0]
[96, 81]
p03424
u773246942
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 = []\nfor i in range(N):\n S.append(input())\n\nCOUNT = S.count("Y")\n\nif COUNT > 0:\n print("Four")\nelse:\n print("Three")\n \n ', 'N = int(input())\nS = [input() for i in range(N)]\n\nCOUNT = S.count("Y")\n\nif COUNT > 0:\n print("Four")\nelse:\n print("Three")\n \n \n', 'N = int(input())\nS = list(input().split())\n\nCOUNT = S.count("Y")\n\nif COUNT > 0:\n print("Four")\nelse:\n print("Three")\n \n \n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s133210303', 's467288525', 's795191809']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[150, 135, 129]
p03424
u774417629
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 = input().split(' ')\na = set(list(a))\nprint(len(a))", "n=int(input())\na = input().split(' ')\na = set(list(a))\nx=len(a)\nif x == 3:\n print('Three')\nelif x == 4:\n print('Four')\n"]
['Wrong Answer', 'Accepted']
['s360658143', 's959381212']
[2940.0, 2940.0]
[17.0, 18.0]
[68, 126]
p03424
u778700306
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()\ns = set(input().split())\nprint(len(s))\n', 'input()\ns = set(input().split())\n\nprint("Four" if len(s) == 4 else "Three")\n']
['Wrong Answer', 'Accepted']
['s052233097', 's007319061']
[2940.0, 2940.0]
[18.0, 17.0]
[47, 76]
p03424
u784022244
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 len(set(S))==3:\n print("Three")\nelif len(set(S))==4:\n print("Four")', 'N=int(input())\nS=input().split()\nif len(set(S))==3:\n print("Three")\nelif len(set(S))==4:\n print("Four")']
['Runtime Error', 'Accepted']
['s927589138', 's116379707']
[2940.0, 2940.0]
[17.0, 19.0]
[121, 105]
p03424
u785578220
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())\nk=[]\nfor i in range(n):\n k.append(input())\np = set(k)\nif len(p) == 3:\n print("Three")\nelse:\n print("Four")\n', "\na = int(input())\nl = list(map(str,input().split()))\n\ns = len(set(l))\nif s == 3:\n print('Three')\nelse:\n print('Four')"]
['Runtime Error', 'Accepted']
['s832308816', 's056402831']
[2940.0, 2940.0]
[18.0, 17.0]
[133, 123]
p03424
u789364190
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()]\n\nres = 'Three'\nif 'Y' in s:\n res = 'Four'\n\nprint(res)\n", "n = int(input())\ns = input().split()\n\nres = 'Three'\nif 'Y' in s:\n res = 'Four'\n\nprint(res)\n"]
['Runtime Error', 'Accepted']
['s042776280', 's673677177']
[3316.0, 2940.0]
[19.0, 17.0]
[110, 92]
p03424
u795187996
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 = [i for i in input().split()]\ns = set(s)\nprint('four') if len(s)==4 else print('Three')", "n = int(input())\ns = [i for i in input().split()]\ns = set(s)\nprint('Four') if len(s)==4 else print('Three')"]
['Wrong Answer', 'Accepted']
['s349281638', 's592829972']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 107]
p03424
u797550216
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\nprint(s)\n\n\nif y_n == 0:\n\tprint('Three') \nelse:\n\tprint('Four') ", "n = int(input())\ns = list(map(str,input().split()))\n\nprint(s)\n\ny_n = s.count('Y')\n\nif y_n == 0:\n\tprint('Three') \nelse:\n\tprint('Four') ", "n = int(input())\ns = list(map(str,input().split()))\n\n\ny_n = s.count('Y')\n\nif y_n == 0:\n\tprint('Three') \nelse:\n\tprint('Four')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s356572886', 's849752393', 's245069350']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[117, 136, 125]
p03424
u798543098
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\nnum = 0\nl = []\n\nfor i in s:\n if i not in l:\n num += 1\n l.append(i)\nprint(num)', "n = int(input())\ns = list(input().split())\n\nnum = 0\nl = []\n\nfor i in s:\n if i not in l:\n num += 1\n l.append(i)\nif num == 3:\n print('Three')\nelse:\n print('Four')"]
['Wrong Answer', 'Accepted']
['s869635360', 's531645054']
[9016.0, 9068.0]
[30.0, 25.0]
[126, 171]
p03424
u799428010
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()\nif 'Y' in S :\n print('Three')\nelse:\n print('Four')\n", "N=int(input())\nS=map(int,input().split())\nif 'Y' in S :\n print('Four')\nelse:\n print('Three')\n", "N=int(input())\nS=map(int,input().split())\nif 'Y' in N :\n print('Three')\nelse:\n print('Four')", "N=int(input())\nS=input()\nif 'Y' in S :\n print('Four')\nelse:\n print('Three')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s070526422', 's148124985', 's575756597', 's271751324']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[78, 95, 94, 78]
p03424
u799691369
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`.
['num = input()\nl = []\nl = input().split()\ns = set(l)\n\nprint(len(s))', "num = input()\nl = []\nl = input().split()\ns = set(l)\n\nlen = len(s)\nif len == 3:\n print('Three')\nif len == 4:\n print('Four')"]
['Wrong Answer', 'Accepted']
['s597605973', 's803662022']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 128]
p03424
u802963389
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()))\nif "Y" in s:\n print("Four")\nelse:\n print("Three")', 'from collections import Counter\nn = int(input())\nS = list(input().split())\ncS = Counter(S).keys()\nif "Y" in cS or len(cS) == 4:\n print("Four")\nelse:\n print("Three")\n']
['Runtime Error', 'Accepted']
['s550771750', 's051244836']
[2940.0, 3316.0]
[18.0, 21.0]
[99, 167]
p03424
u812958204
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())\ncolors = list(map(int, input().split()))\nif len(set(colors)) == 3:\n print('Three')\nelse:\n print('Four')", "N = int(input())\ncolors = list(input().split())\nif len(set(colors)) == 3:\n print('Three')\nelse:\n print('Four')"]
['Runtime Error', 'Accepted']
['s723544505', 's388277618']
[2940.0, 2940.0]
[17.0, 17.0]
[122, 116]
p03424
u813174766
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(["No","Yes"]["Y" in input()])', 'input()\nprint(["Three","Four"]["Y" in input()])']
['Wrong Answer', 'Accepted']
['s529638069', 's915915326']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 47]
p03424
u814986259
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 "Y" in S:\n print("Four")\nelse:\n print("Three")', 'N=int(input())\nS=list(input().split())\nif "Y" in S:\n print("Four")\nelse:\n print("Three")']
['Runtime Error', 'Accepted']
['s432375051', 's998678448']
[2940.0, 3060.0]
[19.0, 20.0]
[88, 90]
p03424
u821425701
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())\narare = input().split()\n\nfor i in range(N):\n if arare[i] == 'Y':\n print('Three')\n break\nelse:\n print('Four')", "N = int(input())\narare = input().split()\n\nfor i in range(N):\n if arare[i] == 'Y':\n print('Four')\n break\nelse:\n print('Three')"]
['Wrong Answer', 'Accepted']
['s941425750', 's010483955']
[3060.0, 3316.0]
[17.0, 20.0]
[145, 145]