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
p03109
u163320134
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["y,m,d=map(str,input().split('/'))\nif int(y)<2019:\n print('Heisei')\nelse:\n if m[0]=='0' and int(m[1])<4:\n print('Heisei')\n elif int(m[1])==4 and int(d)<=30:\n print('Heise{')\n else:\n print('TBD')", "y,m,d=map(str,input().split('/'))\nif int(m[0])==1:\n print('TBD')\nelif int(m[1])>4:\n print('TBD')\nelse:\n print('Heisei')"]
['Wrong Answer', 'Accepted']
['s321113104', 's960913193']
[3060.0, 3060.0]
[17.0, 17.0]
[206, 122]
p03109
u166306121
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["import bisect\n\nf_inf = float('inf')\n\n\ndef cal(syurui, d, index):\n if d == 'e':\n return syurui[index]\n elif d == 'w':\n return syurui[index - 1]\n\n\nA, B, Q = map(int, input().split())\ns = [int(input()) for i in range(A)]\ns.sort()\nt = [int(input()) for i in range(B)]\nt.sort()\ns.insert(0, -f_inf)\nt.insert(0, -f_inf)\ns.append(f_inf)\nt.append(f_inf)\n\nfor i in range(Q):\n x = int(input())\n s_index = bisect.bisect_left(s, x)\n t_index = bisect.bisect_left(t, x)\n print(min(max(abs(x-s[s_index]), abs(x-t[t_index])), max(abs(x-s[s_index-1]), abs(x-t[t_index-1])), 2*abs(x-s[s_index-1])+abs(x-t[t_index]), 2*abs(x-s[s_index])+abs(x-t[t_index-1]), abs(x-s[s_index-1])+2*abs(x-t[t_index]), abs(x-s[s_index])+2*abs(x-t[t_index-1])))\n", "S = list(map(int, input().split('/')))\n\nif 1 <= S[1] <= 4:\n print('Heisei')\nelif S[1] == 4 and S[2] == 30:\n print('Heisei')\nelse:\n print('TBD')"]
['Runtime Error', 'Accepted']
['s427771095', 's248360563']
[3064.0, 3316.0]
[20.0, 25.0]
[757, 152]
p03109
u166621202
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S=input()\nS.replace("/","")\nif (int(S) - "20190430") <= 0:\n print("Heisei")\nelse:\n print("TBD")', 'S=input()\nif (int(S.replace("/","")) - 20190430) <= 0:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s009903322', 's875623138']
[2940.0, 2940.0]
[18.0, 17.0]
[97, 93]
p03109
u167681750
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y, m, d = map(int, input().split("/"))\nprint(y,m,d)\n\nif y > 2020 or (y == 2019 and m > 5) or (y == 2019 and m == 4 and d > 30):\n print("TBD")\nelse:\n print("Heisei")', 'y, m, d = map(int, input().split("/"))\n\nif y < 2018 or (y == 2019 and m < 4) or (y == 2019 and m == 4 and d <= 30):\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s308039132', 's870078059']
[2940.0, 2940.0]
[17.0, 17.0]
[170, 158]
p03109
u170765582
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["print('TBD'if int(input().split()[1])>4 else 'Heisei')", "a,b,c=map(int,input().split('/'))\nprint('Heisei'if b<5 else'TBD')"]
['Runtime Error', 'Accepted']
['s803562523', 's629865580']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 65]
p03109
u181215519
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y, m, d = map( int, input().split("/") )\nif y < 2019 or ( y == 2019 and m <= 4 )\n print( "Heisei" )\nelse : \n print( "TBD" )', 'y, m, d = map( int, input().split("/") )\nif m <= 4\n print( "Heisei" )\nelse : \n print( "TBD" )', 'y, m, d = map( int, input().split("/") )\nif y < 2019 or ( y == 2019 and m <= 4 ) :\n print( "Heisei" )\nelse : \n print( "TBD" )']
['Runtime Error', 'Runtime Error', 'Accepted']
['s338704167', 's764000910', 's833899135']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[127, 97, 129]
p03109
u185354171
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d =map(int,input().split("/"))\nans = \'heisei\'\nif y > 2019:\n ans = \'TBD\'\nelif y == 2019:\n if m >5:\n ans = \'TBD\'\nprint(ans)', 'y,m,d =map(int,input().split("/"))\nans = \'Heisei\'\nif y > 2019:\n ans = \'TBD\'\nelif y == 2019:\n if m >4:\n ans = \'TBD\'\nprint(ans)']
['Wrong Answer', 'Accepted']
['s757274176', 's862472286']
[2940.0, 2940.0]
[18.0, 17.0]
[138, 138]
p03109
u197300773
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s=[int(i) for i in input().split(\'/\')]\nprint(s)\nif s[0]>2020 or (s[0]==2019 and s[1]>4):\n print("TBD")\nelse: print("Heisei")', 's=[int(i) for i in input().split(\'/\')]\nif s[0]>2020 or (s[0]==2019 and s[1]>4):\n print("TBD")\nelse: print("Heisei")']
['Wrong Answer', 'Accepted']
['s676912589', 's971428866']
[2940.0, 2940.0]
[17.0, 18.0]
[127, 118]
p03109
u198062737
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['H = "2019/04/30"\nS = input()\nif S < H:\n print("Heisei")\nelse:\n print("TBD")', 'S = map(int, input().split("/"))\nif S[1] >= 5:\n print("TBD")\nelse:\n print("Heisei")', 'S = input().split("/")\nif S[1] >= 5:\n print("TBD")\nelse:\n print("Heisei")', 'S = list(map(int, input().split("/")))\nif S[1] >= 5:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s376388351', 's649637691', 's989143573', 's463282085']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0]
[77, 85, 75, 91]
p03109
u198440493
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["a = input().split('/')\nif a[0] < 2019:\n print('Heisei')\nelif a[1] < 5:\n print('Heisei')\nelse:\n print('TBD')", "a = input().rstrip().split('/')\na = list(map(int, a))\nif a[0] < 2019:\n print('Heisei')\nelif a[1] < 5:\n print('Heisei')\nelse:\n print('TBD')"]
['Runtime Error', 'Accepted']
['s806475289', 's503602208']
[2940.0, 3060.0]
[17.0, 22.0]
[110, 141]
p03109
u200785298
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['#!/usr/bin/env python3\nimport sys\n \n \ndef solve(n: int, m: int, Q: int, s: "List[int]", t: "List[int]", x: "List[int]"):\n \n def check_pos(target, a, x):\n ret = {}\n a_x = a + x\n a_x.sort()\n idx = 0\n while idx < len(a_x) and a_x[idx] < target[0]:\n dis = target[0] - a_x[idx]\n ret[a_x[idx]] = [dis, [target[0], dis]] \n idx += 1\n for i in range(len(target) - 1):\n while idx < len(a_x) and target[i] <= a_x[idx] <= target[i + 1]:\n pos = a_x[idx]\n l = a_x[idx] - target[i]\n r = target[i + 1] - a_x[idx]\n ret[pos] = [\n min(l, r),\n [target[i], l],\n [target[i + 1], r]\n ]\n idx += 1\n while idx < len(a_x):\n dis = a_x[idx] - target[-1]\n ret[a_x[idx]] = [dis, [target[-1], dis]] \n idx += 1\n return ret\n \n nearest_s = check_pos(s, t, x)\n nearest_t = check_pos(t, s, x)\n print(\'hoge\')\n return\n \n for q in x:\n ret = min(\n min([(pos_dis[1] + nearest_t[pos_dis[0]][0]) for pos_dis in nearest_s[q][1:]]),\n min([(pos_dis[1] + nearest_s[pos_dis[0]][0]) for pos_dis in nearest_t[q][1:]]))\n print(ret)\n return\n \n \ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n A = int(next(tokens)) # type: int\n B = int(next(tokens)) # type: int\n Q = int(next(tokens)) # type: int\n s = [ int(next(tokens)) for _ in range(A) ] # type: "List[int]"\n t = [ int(next(tokens)) for _ in range(B) ] # type: "List[int]"\n x = [ int(next(tokens)) for _ in range(Q) ] # type: "List[int]"\n solve(A, B, Q, s, t, x)\n \nif __name__ == \'__main__\':\n main()', "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(S: str):\n s = int(S[:4] + S[5:7] + S[8:10])\n if s <= 20190430:\n ret = 'Heisei'\n else:\n ret = 'TBD'\n print(ret)\n return\n\n\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n S = next(tokens) # type: str\n solve(S)\n\nif __name__ == '__main__':\n main()\n"]
['Runtime Error', 'Accepted']
['s404309207', 's888517940']
[3316.0, 3060.0]
[19.0, 20.0]
[1920, 446]
p03109
u201082459
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = str(input())\ny = int(s[0:4])\nif int(s[5]) == 0:\n m = int(s[6])\nelse:\n m = int(s[5:7])\nif int(s[8]) == 0:\n d = int(s[9])\nelse:\n d = int(s[8:10])\nif y < 2019:\n print('Heisei')\nelif y == 2019 and m not in [1,2,3,4]:\n print('TBD')", "s = str(input())\nif int(s[5]) == 0:\n m = int(s[6])\nelse:\n m = int(s[5:7])\nif m not in [1,2,3,4]:\n print('TBD')\nelse:\n print('Heisei')"]
['Wrong Answer', 'Accepted']
['s501238850', 's185145743']
[3060.0, 2940.0]
[17.0, 17.0]
[248, 137]
p03109
u202689517
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["S = input()\nif S <= '2019/04/03':\n print('Heisei')\nelse:\n print('TBD')\n", "S = input()\nif S <= '2019/04/03':\n print('heisei')\nelse:\n print('TBD')\n", "S = input()\nif S >= '2019/04/03':\n print('heisei')\nelse:\n print('TBD')\n", "S = input()\nif S <= '2019/04/30':\n print('Heisei')\nelse:\n print('TBD')\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s218593498', 's732292899', 's742051797', 's643663095']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0, 17.0]
[77, 77, 77, 77]
p03109
u204208382
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s=list(map(int,input().split(/)))\n\nif s[0]<=2018:\n print(Heisei)\nelif s[0]=2019 and s[1]<5:\n print(Heisei)\nelse:\n print(TBD)\n', 's=list(map(int,input().split()))\n \nif s[0]<=2018:\n print(Heisei)\nelif s[0]=2019 and s[1]<5:\n print(Heisei)\nelse:\n print(TBD)', 's=list(map(int,input().split("/")))\n \nif s[0]<=2018:\n print("Heisei")\nelif s[0]=2019 and s[1]<5:\n print("Heisei")\nelse:\n print("TBD")', 's=list(map(int,input().split("/")))\n \nif s[0]<=2018:\n print(Heisei)\nelif s[0]=2019 and s[1]<5:\n print(Heisei)\nelse:\n print(TBD)', 's=list(map(int,input().split("/")))\n \nif s[0]<=2018:\n print("Heisei")\nelif s[0]==2019 and s[1]<5:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s251036575', 's479315606', 's788842441', 's871822852', 's597643736']
[2940.0, 2940.0, 2940.0, 2940.0, 3316.0]
[17.0, 17.0, 17.0, 17.0, 20.0]
[128, 127, 136, 130, 137]
p03109
u207036582
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\nif s[5] == \'1\' or s[6] > 4 : print("TBD")\nelse : print("Heisei")', 's = input()\nif s[5] == \'1\' or s[6] > \'4\' : print("TBD")\nelse : print("Heisei")']
['Runtime Error', 'Accepted']
['s825423569', 's758848494']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 78]
p03109
u207464563
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d = map(int,input().split("/")\n\nif y >= 2020:\n print("TBD")\nelif y == 2019:\n if m >= 5:\n print("TBD")\nelse:\n print("Heisei")', 'y,m,d = map(int,input().split("/"))\n\nif y >= 2020:\n print("TBD")\nelif y == 2019:\n if m >= 5:\n print("TBD")\nelse:\n print("Heisei")', 'y,m,d = map(int,input().split("/"))\n\nif y >= 2020:\n print("TBD")\nelif y == 2019:\n if m >= 5:\n print("TBD")\n else:\n print("Heisei") \nelse:\n print("Heisei")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s528200571', 's944549212', 's875879534']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[140, 141, 182]
p03109
u208219327
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d=map(int,input().split("/"))\nif y<=2018 :\n print(Heisei)\nelif y==2019 :\n if m<=4 :\n print(Heisei)\n else:\n print(TBD)\nelse :\n print(TBD)\n', 'y,m,d=map(int,input().split(/))\nif y<=2018 :\n print(Heisei)\nelse:\n if m<=4 :\n print(Heisei)\n else:\n print(TBD) \n', 'y,m,d=map(int,input().split("/"))\nif y<=2018 :\n print("Heisei")\nelif y==2019 :\n if m<=4 :\n print("Heisei")\n else:\n print("TBD")\nelse :\n print("TBD")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s269126291', 's805813676', 's979718007']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 20.0]
[167, 142, 174]
p03109
u210113718
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["\n\n\nS = input() \n\ndate = S.split('/')\n\nyear = int(date[0])\nmonth = int(date[1])\nday = int(date[2])\n\nif month >= 5:\n print('TBD')\nelif:\n print('Heisei')\n", "\n\n\nS = input() \n\ndate = S.split('/')\n\nyear = int(date[0])\nmonth = int(date[1])\nday = int(date[2])\n\nif month >= 5:\n print('TBD')\nelif\n print('Heisei')\n", "\n\n\nS = input() \n\ndate = S.split('/')\n\nyear = int(date[0])\nmonth = int(date[1])\nday = int(date[2])\n\nif month >= 5:\n print('TBD')\nelse:\n print('Heisei')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s734005906', 's863395175', 's200298498']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[227, 226, 227]
p03109
u212641126
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['\nnen,mon,day = map(int,input().split(\'/\'))\n\nif nen >= 2019:\n if mon >= 5: \n print("Heisei")\n else if day >= 30 and mon ==4:\n print("Heisei")\nelse:\n print("TBD")\n', 'S = input()\n\nif S <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s426403419', 's817328049']
[2940.0, 2940.0]
[17.0, 18.0]
[173, 77]
p03109
u217303170
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s=input()\nx=s.replace('/','')\ny=int(x)\nif 20190430 > y:\n print('Heisei')\nelse:\n print('TBD')", "s=input()\nx=s.replace('/','')\ny=int(x)\nif 20190430 >= y:\n print('Heisei')\nelse:\n print('TBD')"]
['Wrong Answer', 'Accepted']
['s714443794', 's578786636']
[2940.0, 2940.0]
[18.0, 17.0]
[94, 95]
p03109
u225110485
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["S = input()\ns = list(S)\nyear = int(s[0] + s[1] + s[2] + s[3])\nmonth = int(s[5] + s[6])\nday = int(s[8] + s[9])\nif year <2019:\n print('Heisei')\n break\nelif month < 5:\n print('Heisei')\n break\nelse:\n print('TBD')", "S = input()\ns = list(S)\nyear = int(s[0] + s[1] + s[2] + s[3])\nmonth = int(s[5] + s[6])\nday = int(s[8] + s[9])\nif year <2019:\n print('Heisei')\nelif month < 5:\n print('Heisei')\nelse:\n print('TBD')"]
['Runtime Error', 'Accepted']
['s487967399', 's429461327']
[3060.0, 3060.0]
[17.0, 17.0]
[223, 203]
p03109
u226912938
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["N = int(input())\nX = []\nU = []\ncount = 0\n\nfor _ in range(N):\n x, u = map(str, input().split())\n X.append(float(x))\n if u == 'JPY':\n U.append(1)\n else:\n U.append(380000)\n\nfor n in range(N):\n count += X[n] * U[n]\n\nprint(count)\n\n\n\n", "S = str(input())\nS = S.replace('/','')\n\nif int(S) <= 20190430:\n print('Heisei')\nelse:\n print('TBD')"]
['Runtime Error', 'Accepted']
['s830461282', 's824438755']
[3060.0, 2940.0]
[18.0, 17.0]
[257, 105]
p03109
u227085629
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = input()\nif s[5] == 0 and int(s[6]) <=4:\n print('Heisei')\nelse:\n print('TBD')", "s = input()\nif int(s[5:7]) <=4:\n print('Heisei')\nelse:\n print('TBD')"]
['Wrong Answer', 'Accepted']
['s643352646', 's736486425']
[2940.0, 2940.0]
[17.0, 18.0]
[82, 70]
p03109
u230549821
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S = map(int,input().split("/"))\nif S<=20190430:\n print("Heisei")\n elif:\n print("TBD")', 'S = input().split("/")\nx = "".join(S)\nif int(x)<=20190430:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s348394999', 's798724135']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 105]
p03109
u231685196
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['\n\narr = list(map(int,input().split("/")))\n\n# print(arr)\n\nflag = False\n\nif arr[0] >= 2019:\n if arr[0] >= 4:\n if arr[0] > 30:\n flag = True\n\n\nif flag:\n print("TBD")\nelse:\n print("Heisei")', '\n\narr = list(map(int,input().split("/")))\n\n# print(arr)\n\nflag = False\n\nif arr[0] <= 2019:\n if arr[0] <= 4:\n if arr[0] <= 30:\n flag = True\n\n\nif not flag:\n print("TBD")\nelse:\n print("Heisei")', '\n\narr = list(map(int,input().split("/")))\n\n# print(arr)\n\nflag = False\n\nif arr[0] <= 2019:\n if arr[1] <= 4:\n if arr[2] <= 30:\n flag = True\n\n\nif not flag:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s096869472', 's794428831', 's244733628']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[211, 216, 216]
p03109
u240793404
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = int(input().replace(\'/\',\'\'))\nif s > 20190420:\n print("TBD")\nelse]\n print("Heisei")', 's = int(input().replace(\'/\',\'\'))\nif s > 20190420:\n print("TBD")\nelse:\n print("Heisei")', 's = int(input().replace(\'/\',\'\'))\nif s > 20190430:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s098032542', 's237931201', 's780836606']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[92, 92, 92]
p03109
u243572357
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["n = int(input())\nprint('Heisei' if n<='2019/4/30' else 'TBD')", "n = '2019/04/30'\na = input()\nprint('Heisei' if a <= n else 'TBD')"]
['Runtime Error', 'Accepted']
['s941994267', 's494658157']
[2940.0, 2940.0]
[19.0, 17.0]
[61, 65]
p03109
u246572032
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = input()\nprint('HEISEI' if s<='2019/04/30' else 'TBD')", "S = input()\nprint('Heisei' if S<='2019/04/30' else 'TBD')"]
['Wrong Answer', 'Accepted']
['s366754474', 's926371103']
[2940.0, 2940.0]
[17.0, 17.0]
[57, 57]
p03109
u249727132
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y = 0\nfor i in range(int(input())):\n x,u = input().split()\n y += int(x) if u == "JPY" else float(x)*380000\nprint(y)', 'N = int(input())\ntotal = 0\nfor i in range(N):\n money, tani = map(input().split())\n money = float(input())\n if tani = "JPY":\n total += money\n else:\n total += money * 380000\nprint("%f"%(total))', 'y=0\nfor _ in range(int(input())):\n x,u=input().split()\n y+=int(x) if u=="JPY" else float(x)*380000\nprint(y', 'N = int(input())\ntotal = 0.0\nfor i in range(N):\n money, tani = map(input().split())\n money = float(input())\n if tani = "JPY":\n total += money\n else:\n total += money * 380000.0\nprint("%.11f"%(total))', 'y, m, d = int(input().split("/"))\n\nif y < 2019:\n print("Heisei")\nelif m <= 4 :\n print("Heisei")\nelse:\n print("TBD")', "S = input()\nprint('Heisei' if S <= 2019/4/30 else 'TBD')", 'N = int(input())\ntotal = 0.0\nrate = 380000.0\nfor i in range(N):\n money, tani = input().split()\n money = float(input())\n if tani = "JPY":\n total += money\n else:\n total += money*rate\nprint("%.11f"%(total))', 'N = int(input())\ntotal = 0.0\nfor i in range(N):\n money, tani = input().split()\n money = float(money)\n if tani = "JPY":\n total += money\n else:\n total += money * 380000.0\nprint("%.11f"%(total))', 'N = int(input())\ntotal = 0.0\nfor i in range(N):\n money, tani = input().split()\n money = float(money)\n if tani = "JPY":\n total += money\n else:\n total += money * 380000.0\nprint("%f"%(total))', 'y=0\nfor _ in range(int(input())):\n x,u=input().split()\n y+=int(x) if u=="JPY" else float(x)*380000\nprint(y)', 'y=0\nfor _ in range(int(input())):\n x,u=input().split()\n y+=int(x) if u=="JPY" else float(x)*380000\nprint(y)', 'S = input()\n\nprint("Heisei" if S <= 2019/4/30 else "TBD")', 'y, m, d = map(int, input().split("/"))\n\nif y < 2019:\n print("Heisei")\nelif m <= 4 :\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s264894424', 's306292350', 's467906380', 's482823512', 's573910148', 's673889063', 's777674222', 's783339991', 's786746518', 's838957511', 's863963502', 's901164362', 's075636953']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 18.0, 18.0, 18.0, 18.0, 17.0]
[121, 217, 112, 224, 124, 56, 229, 217, 214, 113, 113, 57, 129]
p03109
u251123951
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\nprint("Heisei") if s[6] == 4 else print("TBD")', 's = input()\nprint("Heisei") if s[5:7] =< 4 else print("TBD")', 's = input()\nprint("Heisei") if s[5:7] == "01" or s[5:7] == "02" or s[5:7] == "03" or s[5:7] == "04" else print("TBD")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s726544360', 's752147156', 's203180693']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 19.0]
[58, 60, 118]
p03109
u252828980
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = list(input())\nif s[7] <= 3 or (s[7] == 4 and s[8] <=3):\n print("Heisei")\nelse:\n print("TBD")', 'n = input()\nn1 = int(n[0:4]+n[5:7]+n[8:10])\nif n1 > 20190430:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s222052831', 's888839979']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 104]
p03109
u252964975
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S=str(input())\nif int(str[5:7])<5:\n print("Heisei")\nelse:\n print(\'TBD\')', 'S=str(input())\nif int(S[5:7])<5:\n print("Heisei")\nelse:\n print(\'TBD\')']
['Runtime Error', 'Accepted']
['s818867015', 's081745224']
[2940.0, 2940.0]
[17.0, 18.0]
[73, 71]
p03109
u255001744
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['year, month, day = map(int, input().split(\'/\'))\n\nif year <= 4:\n print("Heisei")\nelse:\n print(\'TBD\')\n', 'year, month, day = map(int, input().split(\'/\'))\n\nif month <= 4:\n print("Heisei")\nelse:\n print(\'TBD\')\n']
['Wrong Answer', 'Accepted']
['s976676122', 's826980318']
[2940.0, 2940.0]
[17.0, 19.0]
[106, 107]
p03109
u256464928
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\nprint("Heisei" if s < "2019/04/30" else "TBD")', 's = input()\nprint("Heisei" if s <= "2019/04/30" else "TBD")\n']
['Wrong Answer', 'Accepted']
['s659700960', 's680061491']
[2940.0, 2940.0]
[20.0, 17.0]
[58, 60]
p03109
u263188345
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = list(map(int, input().split('/')))\nflag = 1\nif s[0] > 2019:\n flag = 0\nelif s[0] == 2019:\n if s[1] > 4:\n flag = 0\n\nans_list = ['TBD', 'Heisei']\nprint(ans[flag])\n", "strings = input().split('/')\ns = list(map(int, strings))\nflag = 1\nif s[0] > 2019:\n flag = 0\nelif s[0] == 2019:\n if s[1] > 4:\n flag = 0\n\nans_list = ['TBD', 'Heisei']\nprint(ans_list[flag])\n"]
['Runtime Error', 'Accepted']
['s031832033', 's970641604']
[2940.0, 2940.0]
[17.0, 17.0]
[177, 200]
p03109
u263830634
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["y, m, d = map(int, input().split('/'))\n#print (y, m, d)\nif m <= 4:\n print ('Heissei')\nelse:\n print ('TBD')", "y, m, d = map(int, input().split('/'))\n#print (y, m, d)\nif m <= 4:\n print ('Heisei')\nelse:\n print ('TBD')"]
['Wrong Answer', 'Accepted']
['s604839396', 's653531964']
[2940.0, 2940.0]
[17.0, 18.0]
[112, 111]
p03109
u265118937
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\nif s[5] == "1":\n print("TBD")\nelif s[6] == "4" or s[6] == "3" s[6] == "2" s[6] == "1":\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[5] == "1":\n print("TBD")\nelif s[6] == "4" or s[6] == "3" or s[6] == "2" or s[6] == "1":\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s248196557', 's058018455']
[2940.0, 3060.0]
[17.0, 17.0]
[144, 150]
p03109
u267300160
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['a = input().rstrip().split("/")\nif(int(a[1]) <=4):\n print("heisei")\nelse:\n print("TBD")', 'a = input().rstrip().split("/")\nif(int(a[1]) <=4):\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s701603991', 's138065974']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 93]
p03109
u268792407
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s=input()\nif int(s[:4])<2019:\n print("Heisei")\n exit()\nif int(s[:4])=2019 and int(s[5])<=4:\n print("Heisei")\n exit()\nprint("TBD")', 's=input()\na=list(map(int,s.split("/")))\nif a[0]<2019:\n print("Heisei")\n exit()\nif a[0]==2019 and a[1]<=4:\n print("Heisei")\n exit()\nprint("TBD")']
['Runtime Error', 'Accepted']
['s228792325', 's662312519']
[2940.0, 2940.0]
[18.0, 17.0]
[133, 147]
p03109
u268884249
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['a = input()\nm = int(a[5:7])\nif(m<4):\n print("Heisei")\nelse:\n print("TBD")', 'a = input()\nm = int(a[5:7])\nif(m<=4):\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s958055740', 's615237347']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 80]
p03109
u275710783
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d = map(int, input().split(\'/\'))\nans = True\nif y <= 2019:\n\tif m <= 4:\n if d > 30:\n ans = False\n else:\n ans = False\nelse:\n ans = False\nif ans:\n print("Heisei")\nelse:\n print("TBD")', 'y,m,d = map(int, input().split(\'/\'))\nans = True\nif y <= 2019:\n if m <= 4:\n if d > 30:\n ans = False\n else:\n ans = False\nelse:\n ans = False\nif ans:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s520804552', 's679434926']
[2940.0, 2940.0]
[17.0, 17.0]
[205, 198]
p03109
u279137361
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["import sys\n\nif __name__ == '__main__':\n a = input()\n a = a.split('/')\n year = int(a[0])\n month = int(a[1])\n date = int(a[2])\n if year > 2019:\n print('TBD')\n elif year < 2019:\n print('Heisei')\n elif month < 4:\n print('Heisei')\n elif month > 4:\n print('TBD')\n elif data < 30:\n print('Heisei')\n else:\n print('TBD')", "import sys\n\nif __name__ == '__main__':\n a = input()\n a = a.split('/')\n year = int(a[0])\n month = int(a[1])\n date = int(a[2])\n if year > 2019:\n print('TBD')\n elif year < 2019:\n print('Heisei')\n elif month < 4:\n print('Heisei')\n elif month > 4:\n print('TBD')\n elif date <= 30:\n print('Heisei')\n else:\n print('TBD')"]
['Runtime Error', 'Accepted']
['s026616978', 's368649055']
[3064.0, 3064.0]
[17.0, 17.0]
[386, 387]
p03109
u283751459
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\ns = s.split("/")\n\nif s[0] >= 2019 and s[1] >= 5:\n print("TBD")\nelse:\n print("Heisei")', 's = input()\ns = s.split("/")\n\nif int(s[0]) >= 2019 and int(s[1]) >= 5:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s558664285', 's593083643']
[9100.0, 9096.0]
[26.0, 24.0]
[99, 109]
p03109
u286201019
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['N = int(input())\nX = []\nU = []\nfor i in range(N):\n I = input().split()\n (x, u) = (int(I[0]), I[1])\n X[i] = x\n U[i] = u\n\notoshidama = 0.0\n\nfor i in range(N):\n if U[i] == "JPY":\n otoshidama += X[i]\n elif U[i] == "BTC":\n otoshidama += X[i] * 380000.0\n\nprint(otoshidama)', '# N A B C\n# l1\n# l2\n# ...\n\n(N, A, B, C) = (int(input().split()[i]) for i in range(4))\nL = []\nfor i in range(N):\n l = int(input())\n L.append(l)\n# N = 5\n# A = 100\n# B = 90\n# C = 80\n# L = [98, 40, 30, 21, 80]\n\ndef recur_function(a, b, c, n):\n if n == N:\n return abs(a - A) + abs(b - B) + abs(c - C) if min(a, b, c) > 0 else 10**9\n ret0 = recur_function(a + L[n], b, c, n + 1) + 10 if a > 0 else recur_function(a + L[n], b, c, n + 1)\n ret1 = recur_function(a, b + L[n], c, n + 1) + 10 if b > 0 else recur_function(a, b + L[n], c, n + 1)\n ret2 = recur_function(a, b, c + L[n], n + 1) + 10 if c > 0 else recur_function(a, b, c + L[n], n + 1)\n ret3 = recur_function(a, b, c, n + 1)\n return min(ret0, ret1, ret2, ret3)\n\nprint(recur_function(0, 0, 0, 0))', 'N = int(input())\nX = []\nU = []\nfor i in range(N):\n (x, u) = int(input().split())\n X[i] = x\n U[i] = u\n\notoshidama = 0.0\n\nfor i in range(N):\n if U[i] == "JPY":\n otoshidama += X[i]\n elif U[i] == "BTC":\n otoshidama += X[i] * 380000.0\n\nprint(otoshidama)', 'N = int(input())\nX = []\nU = []\nfor i in range(N):\n I = input().split()\n (x, u) = (int(I[0]), I[1])\n X.append(x)\n U.append(u)\n\notoshidama = 0.0\n\nfor i in range(N):\n if U[i] == "JPY":\n otoshidama += X[i]\n elif U[i] == "BTC":\n otoshidama += X[i] * 380000.0\n\nprint(otoshidama)', 'S = input()\nS_split = S.split("/")\n(year, month, day) = (int(S_split[i]) for i in range(3))\n\nif month > 4:\n print("TBD")\n\nelse:\n print("Heisei")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s695201504', 's780036220', 's895198151', 's908450683', 's154777921']
[3064.0, 3064.0, 3064.0, 3064.0, 2940.0]
[18.0, 19.0, 18.0, 18.0, 18.0]
[298, 776, 277, 304, 150]
p03109
u288430479
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S = list(input().split(\'/\'))\nA = S[0]+S[1]+S[2]\nprint(A)\nif int(A) > 20190430:\n print("TBD")\nelse:\n print("Heisei")', 'S = list(input().split(\'/\'))\nA = S[0]+S[1]+S[2]\n#print(A)\nif int(A) > 20190430:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s464963922', 's173882715']
[2940.0, 2940.0]
[18.0, 17.0]
[117, 118]
p03109
u290211456
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = int("".join(input().split("/")))\nprint(s)\nif s > 20190430:\n\tprint("TBD")\nelse:\n\tprint("Heisei")\n\n', 's = int("".join(input().split("/")))\nif s > 20190430:\n\tprint("TBD")\nelse:\n\tprint("Heisei")\n\n']
['Wrong Answer', 'Accepted']
['s008239641', 's758877676']
[2940.0, 2940.0]
[17.0, 17.0]
[101, 92]
p03109
u290443463
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["import sys\n\nfor S in sys.stdin:\n if S <= '2019/04/30':\n print('Heisei')\n else:\n print('TBD')\n", "import sys\n\nS = sys.argv\nif S <= '20190430':\n print('Heisei')\nelse:\n print('TBD')", "import bisect\ninf = 10**18\nA,B,Q = map(int,input().split(' '))\nss = [-inf] + sorted([int(input()) for i in range(1,A+1)]) + [inf]\nts = [-inf] + sorted([int(input()) for i in range(A+1,A+B+1)]) + [inf]\n\ndef f0(A,x):\n i = bisect.bisect_left(A, x)\n return i, i-1\ndef f1(A,B,x):\n a = f0(A,x)\n bs = [f0(B,A[i]) for i in a]\n return min([abs(A[i]-x) + abs(A[i]-B[j]) \n for ix, i in enumerate(a) \n for j in bs[ix]]) \n\nfor i in range(A+B+1,A+B+Q+1):\n x = int(input())\n print(min(f1(ss,ts,x),f1(ts,ss,x)))\n", "import sys\n\nfor S in sys.stdin\n if S <= '20190430':\n print('Heisei')\n else:\n print('TBD')", "import sys\n\nfor S in sys.stdin:\n y,m,d = [int(x) for x in S.split('/')]\n if y<=2019 and m<=4:\n print('Heisei')\n else:\n print('TBD')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s314441359', 's619663708', 's678070383', 's935144560', 's919438582']
[2940.0, 2940.0, 3064.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0]
[101, 83, 529, 97, 141]
p03109
u296518383
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S=input()\nprint("Heisei" if S<"2019/04/30" else "TBD")', 'S=input()\nprint("Heisei" if S<="2019/04/30" else "TBD")']
['Wrong Answer', 'Accepted']
['s787942286', 's145296239']
[2940.0, 2940.0]
[17.0, 17.0]
[54, 55]
p03109
u298373736
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
[' s=input()\n if s<=\'2019/4/30\':\n \tprint("Heisei")\n else:\n \tprint("TBD")\n\n', 's=input()\nif s<="2019/04/30":\n\tprint(\'Heisei\')\nelse:\n\tprint(\'TBD\')']
['Runtime Error', 'Accepted']
['s256291065', 's001527822']
[2940.0, 2940.0]
[18.0, 17.0]
[72, 66]
p03109
u302786917
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['#coding:utf-8\n\nif __name__ == "__main__":\n\n i = str(input())\n\n j = i.split(\'/\')\n\n print(j[1].split(\'0\')[1])\n\n if int(j[0]) < 2019:\n print("Heisei")\n elif int(j[1].split(\'0\')[1]) < 5:\n print("Heisei")\n else:\n print("TBD")', '#coding:utf-8\n\nif __name__ == "__main__":\n\n i = str(input())\n\n j = i.split(\'/\')\n\n if int(j[0]) < 2019:\n print("Heisei")\n elif int(j[1]) < 5:\n print("Heisei")\n else:\n print("TBD")']
['Runtime Error', 'Accepted']
['s445648591', 's322666208']
[3060.0, 3060.0]
[17.0, 18.0]
[259, 214]
p03109
u305965165
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['import datetime\na = input().split("/")\n\ndate1 = datetime.datetime(a[0], a[1], a[2])\ndate2 = datetime.datetime(2019, 4, 30)\n\nif date1 > date2:\n print("TBD")\nelse:\n print("Heisei")', 'import datetime\na = input().split("/")\n\ndate1 = datetime.datetime(int(a[0]), int(a[1]), int(a[2]))\ndate2 = datetime.datetime(2019, 4, 30)\n\nif date1 > date2:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s342647773', 's590802630']
[3312.0, 3312.0]
[19.0, 22.0]
[184, 199]
p03109
u307842323
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S = list(map(int,input().split(\'/\')))\n\nprint(S)\n\nif S[0] > 2019:\n\tprint("TBD")\nelif S[0] == 2019 and S[1] >= 5:\n\tprint("TBD")\nelif S[0] == 2019 and S[1] >= 4 and S[2] == 30:\n\tprint("Heisei")\nelse:\n\tprint("Heisei")\n', 'S = list(map(int,input().split(\'/\')))\n\nif S[0] > 2019:\n\tprint("TBD")\nelif S[0] == 2019 and S[1] >= 5:\n\tprint("TBD")\nelif S[0] == 2019 and S[1] >= 4 and S[2] == 30:\n\tprint("Heisei")\nelse:\n\tprint("Heisei")\n']
['Wrong Answer', 'Accepted']
['s054087038', 's971623044']
[3060.0, 2940.0]
[17.0, 17.0]
[214, 204]
p03109
u309018392
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = int(input().replace('/',''))\nprint('Heisei') if s <= 2019430 else print('TBD')", "s = int(input().replace('/',''))\nprint('Heisei') if s <= 2019430 else('TBD')", "s = int(input().replace('/',''))\nprint('Heisei') if s <= 20190430 else print('TBD')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s538903693', 's634022226', 's161752450']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[82, 76, 84]
p03109
u315703650
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\nif int(s[5:7])<=4:\n print("Heise")\nelse:\n print("TBD")', 's = input().split("/")\nif int(s[0])<=2019 and int(s[1])<=4 and int(s[2])<=30:\n print("Heise")\nelse:\n print("TBD")', 's = input()\nif int(s[5:7])<=4:\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s102291981', 's463530306', 's001083804']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[72, 119, 73]
p03109
u319818856
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['A, B, Q = [int(s) for s in input().split()]\n\n\nshrines = []\ntemples = []\n\nfor _ in range(A):\n s = int(input())\n shrines.append((s, 10**10))\n\n\n\nji = 0\nfor _ in range(B):\n tp, tc = int(input()), 10**10\n sp, sc = shrines[ji]\n\n while abs(tp - sp) < tc:\n tc = abs(tp - sp)\n\n if abs(tp - sp) < sc:\n shrines[ji] = (sp, abs(tp - sp))\n\n if ji + 1 < A:\n ji += 1\n sp, sc = shrines[ji]\n else:\n break\n\n temples.append((tp, tc))\n\nroad = sorted(temples + shrines, key=lambda x: x[0])\n\n\ndef search(x):\n global A, B\n\n l, r = 0, A + B\n while r - l > 1:\n m = (l + r) // 2\n mp, mc = road[m]\n\n if mp < x:\n l = m\n else:\n r = m\n\n p1, c1 = road[l]\n if l == A + B - 1 or A + B == 1:\n return abs(x - p1) + c1\n\n p2, c2 = road[l+1]\n return min(abs(x-p1) + c1, abs(x-p2) + c2)\n\n\nfor _ in range(Q):\n q = int(input())\n\n y = search(q)\n print(y)\n', 'import bisect\nA, B, Q = map(int, input().split())\nINF = 10 ** 18\ns = [-INF] + [int(input()) for i in range(A)] + [INF]\nt = [-INF] + [int(input()) for i in range(B)] + [INF]\nfor q in range(Q):\n x = int(input())\n b, d = bisect.bisect_right(s, x), bisect.bisect_right(t, x)\n res = INF\n for S in [s[b - 1], s[b]]:\n for T in [t[d - 1], t[d]]:\n d1, d2 = abs(S - x) + abs(T - S), abs(T - x) + abs(S - T)\n \t res = min(res, d1, d2)\n \t print(res)', "y, m, d = [int(s) for s in input().split('/')]\n\nif y > 2019:\n print('TBD')\nelif y < 2019:\n print('Heisei')\nelse: \n if m < 5:\n print('Heisei')\n else:\n print('TBD')\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s575699106', 's626537568', 's386196437']
[3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[1135, 452, 184]
p03109
u320763652
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = int(input())\n\n\nyyyy = int(s[0:4])\nmm = int(s[5:7])\ndd = int(s[8:10])\n\n\nif yyyy >= 2019 and mm >= 5:\n print("TBD")\nelse:\n print("Heisei")', 's = input()\n\n\nyyyy = int(s[0:4])\nmm = int(s[5:7])\ndd = int(s[8:10])\n\n\nif yyyy >= 2019 and mm >= 5:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s584038321', 's641251963']
[2940.0, 2940.0]
[17.0, 17.0]
[164, 159]
p03109
u322229918
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['import numpy as np\nfrom functools import lru_cache\n\nA, B, Q = map(int, input().split())\nadisps = np.array([int(input()) for _ in range(A)])\nbdisps = np.array([int(input()) for _ in range(B)])\nqdisps = np.array([int(input()) for _ in range(Q)])\n\n@lru_cache(maxsize=100000)\ndef nearest(now, flag):\n disps = adisps if flag == 0 else bdisps\n idx = np.argmin(np.abs(disps - now))\n nearest_point = disps[idx]\n cost = np.abs(now - nearest_point)\n return nearest_point, cost\n\nfor qdisp in qdisps:\n\n \n pos_a1, cost_a1 = nearest(qdisp, 0)\n pos_b1, cost_b1 = nearest(pos_a1, 1)\n cost1 = cost_a1 + cost_b1\n\n \n pos_b2, cost_b2 = nearest(qdisp, 1)\n pos_a2, cost_a2 = nearest(pos_b2, 0)\n cost2 = cost_a2 + cost_b2\n\n ans = min(cost1, cost2)\n print(ans)', 'import numpy as np\ny, m, d = map(int, input().split("/"))\n\nif y > 2019:\n print("TBD")\nelif m > 4:\n print("TBD")\nelif d > 30:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s351475255', 's808685083']
[12492.0, 22164.0]
[147.0, 316.0]
[793, 173]
p03109
u327532412
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['from datetime import datetime\nif datetime.strptime(input(), \'%Y/%m/%d\') >= datetime.strptime(\'2019/04/30\', \'%Y/%m/%d\'):\n print("TBD")\nelse:\n print("Heisei")', 'y, m, d = map(int, input().split(\'/\'))\nif y > 2019:\n print("TBD")\nelif y == 2019:\n if m > 4:\n print("TBD")\n else:\n print(\'Heisei\')\nelse:\n print(\'Heisei\')']
['Wrong Answer', 'Accepted']
['s427546828', 's955105333']
[4336.0, 2940.0]
[30.0, 17.0]
[162, 179]
p03109
u328364772
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = map(int, input().split(\'/\'))\nprint("Heisei" if s <= 20190430 else "TBD")\n', 's = int(input().replace(\'/\', \'\'))\nprint("Heisei" if s <= 20190430 else "TBD")\n']
['Runtime Error', 'Accepted']
['s969500454', 's118697607']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 78]
p03109
u329058683
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['a,b,c=map(int,input().split(\'/\'))\nif a > 2019:\n print("TBD")\nelif a == 2019:\n if b> 4:\n print("Heisei")\n else:\n print("TBD")\nelse:\n print("Heisei")', 'a,b,c=map(int,input().split(\'/\'))\nif a > 2019:\n print("TBD")\nelif a == 2019:\n if b> 4:\n print("TBD")\n else:\n print("Heisei")\nelse:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s822445417', 's124924808']
[2940.0, 2940.0]
[17.0, 17.0]
[157, 157]
p03109
u331036636
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d=map(int,input().split(\'/\'));print(["Heisei","TBD"][m<5])', 'y,m,d=map(int,input().split(\'/\'));print(["TBD","Heisei"][m<5])']
['Wrong Answer', 'Accepted']
['s012288047', 's973211649']
[2940.0, 2940.0]
[17.0, 18.0]
[62, 62]
p03109
u331464808
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["a = input()\nif int(a[6])<=4:\n print('Heisei')\nelif int(a[6])>4 or int(a[5])=1:\n print('TBD')", "a = input()\nif int(a[5])=0 and int(a[6])<=4:\n print('Heisei')\nelse:\n print('TBD')", "a = input()\nif int(a[5])==0 and int(a[6])<=4:\n print('Heisei')\nelse:\n print('TBD')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s169540388', 's258831961', 's687641719']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[94, 83, 84]
p03109
u333945892
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["y,m,d = map(int,input().split('/'))\nif m>4 :\n print('Heisei')\nelse:\n print('TBD')", "y,m,d = map(int,input().split('/'))\nif m>4 :\n print('TBD')\nelse:\n print('Heisei')\n"]
['Wrong Answer', 'Accepted']
['s191290651', 's493444075']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 84]
p03109
u336238390
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["# -*- coding: utf-8 -*-\n\ndate = input().split('/')\n\nif(int(date[0]) >= 2020):\n print('TBD')\n elif(int(date[0]) == 2019 && int(date[1]) >=5):\n print('TBD')\n else:\n print('Heisei')\n \n \n \n", "# -*- coding: utf-8 -*-\n \ndate = input().split('/')\n \nif(int(date[0]) >= 2020):\n print('TBD')\nelif(int(date[0]) == 2019 and int(date[1]) >=5):\n print('TBD')\nelse:\n print('Heisei')"]
['Runtime Error', 'Accepted']
['s472955633', 's444828302']
[2940.0, 2940.0]
[17.0, 17.0]
[209, 182]
p03109
u339199690
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = list(input().split(\'/\'))\ns = [int(ss) for ss in s]\n\nif s[0] < 2019:\n print("Heisei")\nelif s[0] == 2019:\n if s[1] < 4:\n print("Heisei")\n elif (s[1] == 4 and s[2] <= 30) or s[1] > 4:\n print("TBD")\nelse:\n print("TBD")\n', 's = list(input().split(\'/\'))\n\nif s[0] < 2019:\n print("Heisei")\nelif s[0] == 2019:\n if s[1] < 4:\n print("Heisei)\n elif (s[1] == 4 and s[2] <= 30) or s[1] > 4:\n print("TBD")\nelse:\n print("TBD")', 's = list(input().split(\'/\'))\ns = [int(ss) for ss in s]\n\nif s[0] < 2019:\n print("Heisei")\nelif s[0] == 2019:\n if s[1] < 4 or (s[1] == 4 and s[2] <= 30):\n print("Heisei")\n else:\n print("TBD")\nelse:\n print("TBD")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s387975843', 's826904643', 's974406861']
[9176.0, 8956.0, 9156.0]
[25.0, 24.0, 27.0]
[229, 201, 220]
p03109
u339550873
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nS = input()\ny, m, d = [int(x) for x in S.split(\'/\')]\nif y>=2020:\n answer = "Heisei"\nelif:\n y = 2019 and m >= 5:\n answer = "Heisei"\nelse:\n answer = "TBD" ', '#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nS = input()\nls = [x for x in S.split("/")]\ny = int(ls[0])\nm = ls[1]\nif y<=2018:\n a = "Heisei"\nelif y == 2019 and m in ["01" ,"02", "03","04"]:\n a = "Heisei"\nelse:\n a = "TBD"\n ', '#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nS = input()\nls = [x for x in S.split("/")]\ny = int(ls[0])\nm = ls[1]\nif y<=2018:\n a = "Heisei"\nelif y == 2019 and m in ["01" ,"02", "03","04"]:\n a = "Heisei"\nelse:\n a = "TBD"\nprint(a)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s042651119', 's132479532', 's600661888']
[2940.0, 3316.0, 2940.0]
[18.0, 21.0, 18.0]
[214, 236, 240]
p03109
u343977188
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["S=str(input())\nif int(S[5:7])<=4:\n print('HEISEI')\nelse:\n print('TBD')", "S=str(input())\nif int(S[5:7])<=4:\n print('Heisei')\nelse:\n print('TBD')"]
['Wrong Answer', 'Accepted']
['s104256827', 's441921870']
[2940.0, 2940.0]
[18.0, 17.0]
[72, 72]
p03109
u350880240
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["date=input()\nif date>'2019-04-30':\n print('TBD')\nelse:\n print('Heisei')\n \n", "date=input()\nif date>='2019-04-30':\n print('TBD')\nelse:\n print('Heisei')\n ", "date=input()\nif date>'2019/04/30':\n print('TBD')\nelse:\n print('Heisei')\n \n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s181109288', 's237276072', 's678543359']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[77, 77, 77]
p03109
u352359612
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["yyyy = int(input())\nmm = int(input())\ndd = int(input())\nif yyyy < 2019:\n print('Heisei')\n break\nelif yyyy > 2019:\n print('TBD')\n break\nelse:\n if mm < 5:\n print('Heisei')\n break\n else:\n print('TBD')", "yyyy = int(input())\nmm = int(input())\nif yyyy < 2019:\n print('Heisei')\nelif yyyy > 2019:\n print('TBD')\nelse:\n if mm == 1 or mm == 2 or mm == 3 or mm == 4:\n print('Heisei')\n else:\n print('TBD')", "yyyy = int(input())\nmm = int(input())\ndd = int(input())\nif yyyy < 2019:\n print('Heisei')\nelif yyyy > 2019:\n print('TBD')\nelse:\n if mm < 5:\n print('Heisei')\n else:\n print('TBD')", "yyyy = int(input())\nmm = int(input())\ndd = int(input())\nif yyyy < 2019:\n print('Heisei')\nelif yyyy > 2019:\n print('TBD')\nelse:\n if mm == 1 or mm == 2 or mm == 3 or mm == 4:\n print('Heisei')\n else:\n print('TBD')", "if yyyy < 2019:\n print('Heisei')\nelif yyyy > 2019:\n print('TBD')\nelse:\n if mm < 5:\n print('Heisei')\n else:\n print('TBD')", "yyyy = int(input())\nmm = int(input())\ndd = int(input())\nif yyyy < 2019:\n print('Heisei')\nelif yyyy > 2019:\n print('TBD')\nelse:\n if mm < 5:\n print('Heisei')\n else:\n print('TBD')", "if yyyy < 2019:\n print('Heisei')\nelif yyyy > 2019:\n print('TBD')\nelse:\n if mm == 1 or mm == 2 or mm == 3 or mm == 4:\n print('Heisei')\n else:\n print('TBD')", "if yyyy < 2019:\n print('Heisei')\nelif yyyy > 2019:\n print('TBD')\nelse:\n if mm == 01 or mm == 02 or mm == 03 or mm == 04:\n print('Heisei')\n else:\n print('TBD')", "S = input()\nif S <= '2019/04/30' :\n print('Heisei' )\nelse:\n print('TBD')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s043590949', 's179561022', 's200887535', 's410017407', 's498237480', 's594479437', 's667697288', 's757246023', 's483717054']
[2940.0, 3060.0, 3060.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[236, 218, 202, 236, 146, 202, 180, 184, 78]
p03109
u353652911
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['print("Heisei" if input()<="2019/04/30" and"TBD")', 'print("Heisei" if input()<="2019/04/30" else "TBD")']
['Runtime Error', 'Accepted']
['s446792546', 's535451590']
[2940.0, 2940.0]
[17.0, 17.0]
[49, 51]
p03109
u354623416
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\nif int(s[5:7]) < 4:\n print ("Heisei")\nelse :\n print (\'TBD\')\n', 's = input()\nif int(s[5:7]) <= 4 :\n print ("Heisei")\nelse :\n print (\'TBD\')\n']
['Wrong Answer', 'Accepted']
['s578646787', 's008215207']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 82]
p03109
u354916249
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S = list(map(int, input().split(\'/\')))\n\nprint(S)\n\nif S[0] < 2019:\n print("Heisei")\nelif S[0] == 2019:\n if S[1] >=5:\n print(\'TBD\')\n else:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n', 'S = list(map(int, input().split(\'/\')))\n\n\nif S[0] < 2019:\n print("Heisei")\nelif S[0] == 2019:\n if S[1] >=5:\n print(\'TBD\')\n else:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n']
['Wrong Answer', 'Accepted']
['s583298754', 's932512685']
[2940.0, 2940.0]
[18.0, 17.0]
[200, 191]
p03109
u355154595
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["S=input()\nif S[5:7]<5:\n print('Heisei')\nelse:\n print('TBD')\n ", "S=input()\nif int(S[5:7])<5:\n print('Heisei')\nelse:\n print('TBD')\n \n"]
['Runtime Error', 'Accepted']
['s767211100', 's161062845']
[2940.0, 2940.0]
[18.0, 18.0]
[70, 76]
p03109
u355387749
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["# coding: utf-8\n# Your code here!\n\nstr = input().strip()\nsplited = ''.join(str.split('/'))\ni = int(splited)\n\nif i >= 20190430:\n print('TBD')\nelse:\n print('Heisei')\n", "# coding: utf-8\n# Your code here!\n\nstr = input().strip()\nsplited = ''.join(str.split('/'))\ni = int(splited)\n\nif i > 20190430:\n print('TBD')\nelse:\n print('Heisei')\n"]
['Wrong Answer', 'Accepted']
['s739791110', 's528213156']
[3060.0, 2940.0]
[18.0, 17.0]
[170, 169]
p03109
u356539385
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["S=str(input())\nX=int(S[5:7])\nif X>=5:\n\tprint('TBD')\nelse:\n\tprint('HEISEI')", "S=str(input())\nX=int(S[5:7])\nif X>=5:\n\tprint('TBD')\nelse:\n\tprint('Heisei')"]
['Wrong Answer', 'Accepted']
['s014153407', 's520607514']
[2940.0, 2940.0]
[18.0, 18.0]
[74, 74]
p03109
u357218223
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['# coding: utf-8\nfrom sys import stdin\nimport sys\nY,M,D = map(int,stdin.readline().rstrip().split("/"))\nif Y >= 2019:\n if M >= 5:\n print("TBD")\n sys.exit()\nprint("heisei")', '# coding: utf-8\nfrom sys import stdin\nY,M,D = map(int,stdin.readline().rstrip().split("/"))\nprint("Heisei" if M >= 5 else "TBD")', '# coding: utf-8\nfrom sys import stdin\nY,M,D = map(int,stdin.readline().rstrip().split("/"))\nprint("TBD" if M >= 5 else "Heisei")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s247321386', 's327624941', 's805909804']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[187, 128, 128]
p03109
u357630630
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['Y, M, _ = map(int, input().split("/"))\nif 2019 <= Y and 5 <= M or 2020 <= Y and 1 <= M:\n print("TBD")\nelse:\n print("heisei")', 'Y, M, _ = map(int, input().split("/"))\nprint("TBD") if 5 <= M else print("heisei")', '_, M, _ = map(int, input().split("/"))\nprint("TBD") if 5 <= M else print("Heisei")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s706691826', 's904945472', 's597651320']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[130, 82, 82]
p03109
u358051561
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = input()\nli = s.split('/')\ndate = int(li[0])*10000 + int(li[1])*100 + int(li[2])*100\nif date <= 20190430:\n print('Heisei')\nelse:\n print('TBD')", "s = input()\nli = s.split('/')\ndate = int(li[0])*10000 + int(li[1])*100 + int(li[2])\nif date <= 20190430:\n print('Heisei')\nelse:\n print('TBD')"]
['Wrong Answer', 'Accepted']
['s020574896', 's223506950']
[2940.0, 2940.0]
[17.0, 17.0]
[151, 147]
p03109
u361826811
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["\n\nimport sys\nimport numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n\nYMD = readline().decode('utf8').rstrip().split('/')\nprint(YMD)\nMD=int(''.join(YMD[1:]))\nprint('Heisei' if MD <=430 else 'TBD')\n", "\n\nimport sys\nimport numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n\nYMD = readline().decode('utf8').rstrip().split('/')\n# print(YMD)\nMD=int(''.join(YMD[1:]))\nprint('Heisei' if MD <=430 else 'TBD')\n"]
['Wrong Answer', 'Accepted']
['s732748242', 's920535378']
[12228.0, 12228.0]
[149.0, 151.0]
[344, 346]
p03109
u363992934
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['year, month, day = map(int, input().split("/"))\nif year < 2019 or (year == 2019 and month < 4):\n print("Heisei")\nelse:\n print("TBD")', 'year, month, day = map(int, input().split("/"))\nif (month <= 4):\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s494468615', 's654079695']
[2940.0, 2940.0]
[17.0, 18.0]
[134, 103]
p03109
u367130284
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['print(["TBD","Heisei"][input()<"2019/04/30"])', 'print(["TBD","Heisei"][input()<="2019/04/30"])']
['Wrong Answer', 'Accepted']
['s827201618', 's755200830']
[2940.0, 2940.0]
[18.0, 19.0]
[45, 46]
p03109
u368679547
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['x, y, z = (int(i) for i in input().split(\'/\'))\n\nif(x>2019):\n print("TBD")\nelif(y>4):\n print("TBD")\nelif(z>30):\n print("TBD")\nelse:\n print("heisei")\n', 'def main():\n x, y, z = (int(i) for i in input().split(\'/\'))\n\n if(x>2019):\n print("TBD")\n return\n elif(y>4):\n print("TBD")\n return\n elif(z>30):\n print("TBD")\n return\n else:\n print("heisei")\n return\n\nif __name__ == "__main__":\n main()\n', 'def main():\n x, y, z = (int(i) for i in input().split(\'/\'))\n\n if(x>2019):\n print("TBD")\n return\n elif(y>4):\n print("TBD")\n return\n elif(z>30):\n print("TBD")\n return\n else:\n print("Heisei")\n return\n\nif __name__ == "__main__":\n main()\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s330711528', 's642242089', 's752414297']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[160, 307, 307]
p03109
u371132735
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\nif int(s[5:7])>4:\n print("TBD")\nelse:\n print("heisei")', 's = input()\nif int(s[5:7])>4:\n print("TBD")\nelse:\n print("Heisei")\n']
['Wrong Answer', 'Accepted']
['s176059214', 's414612807']
[2940.0, 2940.0]
[17.0, 17.0]
[68, 69]
p03109
u371467115
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d=map(int,input().solit("/"))\nif m<5:\n print("Heisei")\nelse:\n print("TBD")', 'y,m,d=map(int,input().split("/"))\nif m<5:\n print("Heisei")\nelse:\n print("TBD")\n']
['Runtime Error', 'Accepted']
['s824401634', 's612970720']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 81]
p03109
u371530330
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = input()\nif s <= '2019/04/19':\n print(Heisei)\nelse:\n print(TDB)", "s = input()\nS = s.split('/')\nymd = int(''.join(S)) \nif ymd <= 20190419:\n print(Heisei)\nelse:\n print(TDB)", 'a = list(map(int,input().split("/")))\nif a[1] > 4:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s299452086', 's626902587', 's943841547']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 19.0]
[68, 106, 89]
p03109
u374146618
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['S = input()\nwk = S[:4]+S[5:7]+S[8:10]\nif wk=<20190430:\n print("Heisei")\nelse:\n print("TBD")', 'S = input()\nwk = S[:4]+S[5:7]+S[8:10]\nif wk<20190430:\n print("Heisei")\nelse:\n print("TBD")', 'S = input()\nwk = int(S[:4]+S[5:7]+S[8:10])\nif wk<=20190430:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s162948314', 's878259472', 's749383472']
[2940.0, 2940.0, 2940.0]
[16.0, 17.0, 17.0]
[97, 96, 102]
p03109
u374829922
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["from datetime import datetime\ndef main():\n S = input()\n S = datetime.strptime(S,'%Y/%m/%d')\n\n if S <= datetime(2019, 4, 30):\n print('heisei')\n else:\n print('TBD')\n\n\n\nif __name__ == '__main__' :\n main()", "from datetime import datetime\ndef main():\n S = input()\n S = datetime.strptime(S,'%Y/%m/%d')\n\n if S <= datetime(2019, 4, 30):\n print('seisei')\n else:\n print('TBD')\n\n\n\nif __name__ == '__main__' :\n main()", "from datetime import datetime\ndef main():\n S = input()\n S = datetime.strptime(S,'%Y/%m/%d')\n\n if S <= datetime(2019, 4, 30):\n print('Heisei')\n else:\n print('TBD')\n\n\n\nif __name__ == '__main__' :\n main()"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s075261920', 's790161664', 's799982317']
[4388.0, 4388.0, 4644.0]
[32.0, 31.0, 42.0]
[230, 230, 230]
p03109
u375006224
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d=list(map(int,input().split("/")))\nif y>2019:\n print("TBD")\nelif y<2019:\n print("Heisei")\nelif m>4:\n print("TBD")\nelif m<4:\n print("Heisei")\nelif d=30:\n print("TBD")\nelse:\n print("Heisei")', 'y,m,d=list(map(int,input().split("/")))\nif y>2019:\n print("TBD")\nelif y<2019:\n print("Heisei")\nelif m>4:\n print("TBD")\nelif m<4:\n print("Heisei")\nelif d>=30:\n print("TBD")\nelse:\n print("Heisei")', 'y,m,d=list(map(int,input().split("/")))\nif y>2019:\n print("TBD")\nelif y<2019:\n print("Heisei")\nelif m>4:\n print("TBD")\nelif m<4:\n print("Heisei")\nelif d>30:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s574274938', 's718634276', 's677331050']
[2940.0, 3060.0, 3316.0]
[18.0, 17.0, 22.0]
[199, 200, 199]
p03109
u375616706
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['# python template for atcoder1\nimport sys\nsys.setrecursionlimit(10**9)\ninput = sys.stdin.readline\n\n\ns = input()\nprint("TBD" if s < "2019/4/30" else "Heisei")\n', '# python template for atcoder1\nimport sys\nsys.setrecursionlimit(10**9)\ninput = sys.stdin.readline\n\n\ns = input()\nprint("TBD" if s > "2019/04/30" else "Heisei")\n', '# python template for atcoder1\nimport sys\nsys.setrecursionlimit(10**9)\ninput = sys.stdin.readline\n\n\ns = input()\nprint("TBD" if s > "1019/4/30" else "Heisei")\n', '# python template for atcoder1\nimport sys\nsys.setrecursionlimit(10**9)\ninput = sys.stdin.readline\nS = input()\n\nl = S.split("/")\n\nans = "Heisei"\nif int(l[0]) > 2019:\n ans = "TBD"\nelif l[0] == "2019":\n if int(l[1]) > 4:\n ans = "TBD"\nprint(ans)\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s047412882', 's340678538', 's767012586', 's270175714']
[2940.0, 2940.0, 2940.0, 3060.0]
[18.0, 18.0, 18.0, 17.0]
[158, 159, 158, 255]
p03109
u375695365
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['a=list(map(int,input().split(\'/\')))\nprint(a)\nif a[0]==2019:\n if a[1]==4:\n if 30<=a[2]:\n print("Heisei")\n else:\n print("TBD")\n elif 5<=a[1]:\n print("Heisei")\n else:\n print("TBD")\nelif 2019<a[0]:\n print("Heisei")\nelse:\n print("TBD")', 'a=list(map(int,input().split(\'/\')))\n#print(a)\nif a[0]==2019:\n if a[1]==4:\n if 30>=a[2]:\n print("Heisei")\n else:\n print("TBD")\n elif 5>a[1]:\n print("Heisei")\n else:\n print("TBD")\nelif 2019>=a[0]:\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s944158988', 's213414101']
[3064.0, 3060.0]
[17.0, 17.0]
[295, 300]
p03109
u379535139
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["S = input()\n\nyyyy, mm, dd = S.split('/')\nyyyy = int(yyyy)\nmm = int(mm)\ndd = int(dd)\n\ngiven = (2019 * 365) + (4 - 1) * 30 + 30\nsum = (yyyy * 365) + (mm - 1) * 30 + dd\n\nif given >= sum:\n print('heisei')\nelse:\n print('TBD')", "S = input()\n\nyyyy, mm, dd = S.split('/')\nyyyy = int(yyyy)\nmm = int(mm)\ndd = int(dd)\n\nif yyyy > 2019:\n print('TBD')\n\nelif yyyy <= 2019:\n if mm <= 4:\n print('heisei')\n else:\n print('TBD')\nelse:\n print('TBD')", "S = input()\n\nyyyy, mm, dd = S.split('/')\n\ngiven = 2019 * 365 + (4 - 1) * 30 + 30\nsum = int(yyyy) * 365 + (int(mm) - 1) * 30 + int(dd)\n\nif given >= sum:\n print('heisei')\nelse:\n print('TBD')", "S = input()\n\nyyyy, mm, dd = S.split('/')\nyyyy = int(yyyy)\nmm = int(mm)\ndd = int(dd)\n\nif yyyy > 2019:\n print('TBD')\n\nelif yyyy <= 2019:\n if mm <= 4:\n print('Heisei')\n else:\n print('TBD')\nelse:\n print('TBD')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s569324859', 's630735072', 's866804246', 's769708157']
[2940.0, 3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[222, 215, 190, 215]
p03109
u381585104
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['a,b = map(int,input().split())\nprint(a+b if b%a == 0 else b-a)', 's = input()\nm = int(s[5:7])\n\nif m >= 5:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s088856235', 's613892813']
[2940.0, 2940.0]
[18.0, 18.0]
[62, 82]
p03109
u382431597
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['y,m,d = list(map(int, input().split("/")))\n\nif y < 2019 or (y =2019 and m <=4):\n print(Heisei)\nelse:\n print(TBD)', 'y,m,d = list(map(int, input().split("/")))\n \nif y < 2019 or (y ==2019 and m <=4):\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s972029086', 's906563050']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 120]
p03109
u382639013
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["s = input()\nprint(2*min(s.count('1'), s.count('0')))", "S = input()\nprint('Heisei' if S <= '2019/04/30' else'TBD')"]
['Wrong Answer', 'Accepted']
['s775752212', 's051936704']
[8936.0, 9080.0]
[25.0, 29.0]
[52, 58]
p03109
u382967471
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["import stdin\n\nyear, month, date = stdin.readline().rstrip().split(sep='/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 1\n\nif (y < heisei_y):\n print('Heisei');\n else if ( m < heisei_m):\n print('Heisei');\n else if ( d < heisei_d):\n print('Heisei');\n else:\n print('TBD');\n\n", "from sys import stdin\n\n\nyear, month, date = stdin.readline().rstrip().split(sep='/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 1\n\nif y < heisei_y:\n print('Heisei')\nelif (y == heisei_y) and (m < heisei_m):\n print('Heisei')\nelif ((y == heisei_y) and m == heisei_m) and (d <= heisei_d):\n print('Heisei')\nelse:\n print('TBD')\n", "import stdin\n\nyear, month, date = stdin.readline().rstrip().split(sep='/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 1\n\nif y < heisei_y:\n print('Heisei');\nelif m < heisei_m:\n print('Heisei');\nelif d < heisei_d:\n print('Heisei');\nelse:\n print('TBD');\n\n", "import stdin\n\nyear, month, date = stdin.readline().rstrip().split('/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 1\n\nif y < heisei_y:\n print('Heisei')\nelif m < heisei_m:\n print('Heisei')\nelif d < heisei_d:\n print('Heisei')\nelse:\n print('TBD')\n\n", "from sys import stdin\n\n\nyear, month, date = stdin.readline().rstrip().split(sep='/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 1\n\nif y < heisei_y:\n print('Heisei')\nelif (y == heisei_y) and (m < heisei_m):\n print('Heisei')\nelif (m == heisei_m) and (d <= heisei_d):\n print('Heisei')\nelse:\n print('TBD')\n", "from sys import stdin\n\n\nyear, month, date = stdin.readline().rstrip().split(sep='/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 1\n\nif y < heisei_y:\n print('Heisei')\nelif m < heisei_m:\n print('Heisei')\nelif d < heisei_d:\n print('Heisei')\nelse:\n print('TBD')", "from sys import stdin\n\n\nyear, month, date = stdin.readline().rstrip().split(sep='/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 1\n\nif y < heisei_y:\n print('Heisei')\nelif m < heisei_m:\n print('Heisei')\nelif d <= heisei_d:\n print('Heisei')\nelse:\n print('TBD')", "from sys import stdin\n\n\nyear, month, date = stdin.readline().rstrip().split(sep='/')\n\ny = int(year)\nm = int(month)\nd = int(date)\n\nheisei_y = 2019\nheisei_m = 4\nheisei_d = 30\n\nif y < heisei_y:\n print('Heisei')\nelif (y == heisei_y) and (m < heisei_m):\n print('Heisei')\nelif ((y == heisei_y) and m == heisei_m) and (d <= heisei_d):\n print('Heisei')\nelse:\n print('TBD')\n\n"]
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s011023236', 's103538566', 's161596565', 's425648343', 's494337376', 's568838741', 's992303427', 's079806612']
[2940.0, 3064.0, 3064.0, 3060.0, 3060.0, 3064.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[336, 370, 300, 292, 350, 304, 305, 372]
p03109
u385244248
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['N = int(input())\nm = 0\nfor _ in range(N):\n x,u = map(str,input().split())\n x = float(x)\n if u == "JPY":\n m += x\n else:\n m += x*380000\nprint(m)\n', 'S = input()\nA = sorted([S,"2019/4/30"])\nif A[0] == "2019/4/30":\n print("Heisei")\nelse:\n print("TBD")', 'S = input()\nA = sorted([S,"2019/04/30"])\nif A[0] == A[1]:\n print("Heisei")\nelif A[0] == "2019/04/30":\n print("TBD")\nelse:\n print("Heisei")\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s303022666', 's628270754', 's325887493']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[169, 106, 148]
p03109
u385825353
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['N, A, B, C = map(int, input().split())\nl = [int(input()) for i in range(N)]\nINF = 10**9\n\ndef dfs(cur, a, b, c):\n if cur == N:\n return abs(a-A) + abs(b-B) + abs(c-C) - 30 if min(a,b,c)>0 else INF\n\n ans = INF\n ans = min(ans, dfs(cur+1, a, b, c))\n ans = min(ans, dfs(cur+1, a + l[cur], b, c)+10)\n ans = min(ans, dfs(cur+1, a, b+l[cur], c)+10)\n ans = min(ans, dfs(cur+1, a, b, c+l[cur])+10)\n return ans\n\nprint(dfs(0, 0, 0, 0))', 'y, m, d = map(int, input().split(\'/\'))\n \nif y < 2019:\n\tprint("Heisei")\nelif y == 2019:\n\tif m < 4 or (m == 4 and d < 30):\n \tprint("Heisei")\n\telse:\n \tprint("TBD")\nelse:\n print("TBD")', 'y, m, d = map(int, input().splite(\'/\'))\n \nif y < 2019:\n\tprint("Heisei")\nelif y == 2019:\n\tif m < 4 or (m == 4 and d < 30):\n \tprint("Heisei")\n\telse:\n \tprint("TBD")\nelse:\n print("TBD")', 'y, m, d = map(int, input().split(\'/\'))\n \nif y < 2019:\n\tprint("Heisei")\nelif y == 2019:\n\tif m < 4 or (m == 4 and d < 30):\n\t\tprint("Heisei")\n\telse:\n\t\tprint("TBD")\nelse:\n\tprint("TBD")', 'y, m, d = map(int, input().splite(\' \'))\n\nif y < 2019:\n\tprint("Heisei")\nelif y == 2019:\n\tif m < 4 or (m == 4 and d < 30):\n \tprint("Heisei")\n\telse:\n \tprint("TBD")\nelse:\n print("TBD")', 'y, m, d = map(int, input().split(\'/\'))\n \nif y < 2019:\n\tprint("Heisei")\nelif y == 2019:\n\tif m < 4 or (m == 4 and d <= 30):\n\t\tprint("Heisei")\n\telse:\n\t\tprint("TBD")\nelse:\n\tprint("TBD")']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s203169381', 's570124135', 's831755333', 's839381908', 's932750819', 's781385374']
[3192.0, 2940.0, 2940.0, 3060.0, 2940.0, 3060.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[450, 190, 191, 180, 190, 181]
p03109
u386122581
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
["S=input()\n\nS_l=S.split('/')\n\nif int(S_l[1]>4:\n print('TBD')\nelse:\n print('Heisei')", "S=input()\n\nS_l=S.split('/')\n\nif int(S_l[1])>4:\n print('TBD')\nelse:\n print('Heisei')"]
['Runtime Error', 'Accepted']
['s878111030', 's287848540']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 95]
p03109
u391277538
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\n\nyear = int(s[:4])\nmonth = int(s[5:7])\n\nprint(month)\n\nif year < 2019:\n\tprint("Heisei")\n\tquit()\n\nif year >= 2020:\n\tprint("TBD")\n\tquit()\n\nif year==2020 and month >= 5:\n\tprint("TBD")\n\tquit()\nelse:\n\tprint("Heisei")', 's = input()\n\nyear = int(s[:4])\nmonth = int(s[5:7])\n\n\nif year < 2019:\n\tprint("Heisei")\n\tquit()\n\nif year >= 2020:\n\tprint("TBD")\n\tquit()\n\nif year==2019 and month >= 5:\n\tprint("TBD")\n\tquit()\nelse:\n\tprint("Heisei")']
['Wrong Answer', 'Accepted']
['s498781637', 's474340126']
[3060.0, 3060.0]
[18.0, 17.0]
[222, 209]
p03109
u391675400
2,000
1,048,576
You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.
['s = input()\ns = s.replace(\'/\',\'\')\nprint(s)\n\nresult = int(s)\nif result <= 20190430:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\ns = s.replace(\'/\',\'\')\n\nresult = int(s)\nif result <= 20190430:\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s853569332', 's967587836']
[2940.0, 2940.0]
[18.0, 17.0]
[125, 116]