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
u612481724
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 -*-\nimport datetime\n# input\nS = datetime.datetime.strptime(input(), '%Y/%m/%d')\nA = datetime.datetime(2019, 5, 1)\nif (S - A).days < 0:\n print('Hisei')\nelse:\n print('TBD')\n", "# -*- coding: utf-8 -*-\n# input\nS = input()\nif S <= '2019/04/30':\n print('Hisei')\nelse:\n print('TBD')\n", "# -*- coding: utf-8 -*-\n# input\nS = input()\nif S[-5:-3] <= '04':\n print('Heisei')\nelse:\n print('TBD')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s065787902', 's992867961', 's470896572']
[4440.0, 2940.0, 2940.0]
[33.0, 17.0, 17.0]
[197, 108, 108]
p03109
u612635771
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("TBD" if S[6]>=5 or S[5]>=1 else "Heisei")', 'S = input()\nprint("TBD" if S[6]>="5" or S[5]>="1" else "Heisei")']
['Runtime Error', 'Accepted']
['s205432853', 's454592559']
[9028.0, 9028.0]
[21.0, 25.0]
[60, 64]
p03109
u613401788
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\ninput_lines = sys.stdin.readline()\ny,m,d = input_lines.split("/")\n\nif(m>4):\n print(Heisei)\nelse:\n print(TBD)', 'import sys\ninput_lines = sys.stdin.readline()\ny,m,d = input_lines.split("/")\n\n\n\nif(int(m)>4):\n print("Heisei")\nelse:\n print("TBD")', 'import sys\ninput_lines = sys.stdin.readline()\ny,m,d = input_lines.split("/")\n\n\nif(int(m)<=4):\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s546867494', 's653228952', 's206009044']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 19.0]
[125, 136, 136]
p03109
u616025987
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 re\n\ndate_s = input()\n\ndate_l = date_s.replace("/", "")\n\nif(date_l <= 20190430):\n print "Heisei"\nelse:\n print "TBD"\n \n', 'import re\n\ndate_s = input()\n\ndate_l = re.replace("/", "")\n\nif(date_l <= 20190430):\n print "Heisei"\nelse:\n print "TBD"\n ', 'import re\n\ndate_s = input()\n\ndate_l = int(date_s.replace("/", ""))\n\nif(date_l <= 20190430):\n print("Heisei")\nelse:\n print("TBD")\n \n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s270489332', 's391279077', 's934668799']
[2940.0, 2940.0, 3188.0]
[18.0, 17.0, 19.0]
[129, 124, 136]
p03109
u617619153
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()\nfoo = s.split('/')\nif foo[1] <= 4 and foo[2] <= 30:\n print('Heisei')\nelse:\n print('TBD')", "s = input()\nfoo = s.split('/')\nif int(foo[1]) <= 4 and int(foo[2]) <= 30:\n print('Heisei')\nelse:\n print('TBD')\n"]
['Runtime Error', 'Accepted']
['s070424730', 's142942033']
[2940.0, 2940.0]
[17.0, 17.0]
[102, 113]
p03109
u619670102
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\na = list(map(int,input().split("/"))) \n\nif a[0]==2019 and a[1]>=4:\n print("TBD")\nelif a[0]<2019:\n print("TBD")\nelse:\n print("Heisei")', '#coding:utf-8\n\na = list(map(int,input().split("/"))) \n\nif a[0]==2019 and a[1]>=4:\n print("TBD")\nelif a[0]>2019:\n print("TBD")\nelse:\n print("Heisei")', '#coding:utf-8\n\na = list(map(int,input().split("/"))) \n\nif a[0]=2019 and a[1]>=4:\n print("TBD")\nelif a[0]<2019:\n print("TBD")\nelse:\n print("Heisei")', '#coding:utf-8\n\na = list(map(int,input().split("/"))) \n\nif a[0]==2019 and a[1]>4:\n print("TBD")\nelif a[0]>2019:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s539824411', 's587184666', 's871490095', 's260005525']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 18.0, 17.0]
[153, 153, 152, 152]
p03109
u619819312
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.
['b=input()\nprint("TBD" if int(b[:4])>=2019 or int(b[5:7])>=5else"Heisei")', 'b=input()\nprint("TBD" if int(b[:4])>2019 or (int(b[:4])==2019 and int(b[5:7])>=5)else"Heisei")']
['Wrong Answer', 'Accepted']
['s827441515', 's246188104']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 94]
p03109
u620806894
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 < 2019:\n\tprint("Heisei")\nelif y > 2019:\n\tprint("TBD")\nelif m < 4:\n\tprint("Heisei")\nelif m >= 5:\n\tprint("TBD")', 'y,m,d = map(int,input().split(\'/\'))\n\nif y < 2019:\n\tprint("Heisei")\nelif y > 2019:\n\tprint("TBD")\nelif m < 3:\n\tprint("Heisei")\nelif m >= 4:\n\tprint("TBD")\n', 'y,m,d = map(int,input().split(\'/\'))\n\nif y < 2019:\n\tprint("Heisei")\nelif y > 2019:\n\tprint("TBD")\nelif m <= 4:\n\tprint("Heisei")\nelif m >= 5:\n\tprint("TBD")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s268796967', 's392542328', 's219435621']
[2940.0, 2940.0, 2940.0]
[19.0, 17.0, 17.0]
[151, 152, 153]
p03109
u620846115
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/30:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s242185198', 's532703543']
[8876.0, 9088.0]
[26.0, 28.0]
[70, 72]
p03109
u623819879
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[0:4])*10000+int(str[5:7])*100+int(str[8:10])>20190430:\n print('TBD')\nelse:\n print('Heisei')", "s=str(input())\nif int(s[0:4])*10000+int(s[5:7])*100+int(s[8:10])>20190430:\n print('TBD')\nelse:\n print('Heisei')"]
['Runtime Error', 'Accepted']
['s429235159', 's833887029']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 113]
p03109
u624617831
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\ny = int(S[0:4])\nm = int(S[5:7])\nd = int(S[8:10])\n\nprint(y, m, d)\n\nif y >= 2019 and m >= 5:\n print('TBD')\nelse:\n print('Heisei')", "S = input()\n\ny = int(S[0:4])\nm = int(S[5:7])\nd = int(S[8:10])\n\n\nif y >= 2019 and m >= 5:\n print('TBD')\nelse:\n print('Heisei')"]
['Wrong Answer', 'Accepted']
['s283457941', 's018536209']
[2940.0, 2940.0]
[17.0, 17.0]
[146, 131]
p03109
u625302027
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 os\nimport sys\nimport datetime\n\ndef main():\n sDate = datetime.datetime.strptime("2019/04/30", \'%Y/%m/%d\')\n args = sys.argv\n argdate = ""\n\n if len(args) == 1:\n print("Error: invalid arguments.")\n return 2\n\n datestr = args[1]\n\n try:\n argdate = datetime.datetime.strptime(datestr, \'%Y/%m/%d\')\n except:\n print("Error: illegal date format.")\n return 1\n\n if argdate <= sDate:\n print("Heisei")\n else:\n print("TBD")\n\n return 0\n\nif __name__ == \'__main__\':\n sys.exit(main())', 'import os\nimport sys\nimport datetime\n\ndef main():\n sDate = datetime.datetime.strptime("2019/04/30", \'%Y/%m/%d\')\n\n inputdate = input()\n\n try:\n inputdate = datetime.datetime.strptime(inputdate, \'%Y/%m/%d\')\n except:\n print("Error: illegal date format.")\n return 1\n\n if inputdate <= sDate:\n print("Heisei")\n else:\n print("TBD")\n\n return 0\n\nif __name__ == \'__main__\':\n sys.exit(main())']
['Runtime Error', 'Accepted']
['s123574016', 's891435804']
[4452.0, 4464.0]
[33.0, 32.0]
[552, 439]
p03109
u625756385
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.
[" yy,dd,mm =map(int,input().split('/'))\n x = 0\n if(yy<=2019):\n if(mm<=4):\n if(dd<=30):\n x = 1\n \n if(x == 1):\n print('Heisei')\n else:\n print('TBD')\n \n ", " yy,mm,dd =map(int,input().split('/'))\n x = 0\n if(yy<=2019):\n if(mm<=4):\n if(dd<=30):\n x = 1\n \n if(x == 1):\n print('Heisei')\n else:\n print('TBD')", "yy,dd,mm = int(input().split('/'))\nx = 0\nif(yy<=2019):\n if(mm<=4):\n if(dd<=30):\n x = 1\n\nif(x == 1):\n print('Heisei')\nelse:\n print('TBD')\n \n ", "yy,mm,dd =map(int,input().split('/'))\nx = 0\nif(yy<=2019):\n if(mm<=4):\n if(dd<=30):\n x = 1\n \nif(x == 1):\n print('Heisei')\nelse:\n print('TBD')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s323316714', 's743479069', 's793229697', 's898256301']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 18.0]
[210, 194, 154, 159]
p03109
u626337957
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()\n\nif int(A[6:8]) >= 5:\n print('TBD')\nelse:\n print('Heisei')", "A = input()\n\nif int(A[5:7]) >= 5:\n print('TBD')\nelse:\n print('Heisei')\n"]
['Runtime Error', 'Accepted']
['s783289978', 's177015219']
[2940.0, 2940.0]
[18.0, 18.0]
[72, 73]
p03109
u629350026
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())\ns=list(s)\nprint(s)\nif s[5]=="0" and (s[6]=="1" or s[6]=="2" or s[6]=="3" or s[6]=="4"):\n print("Heisei")\nelse:\n print("TBD")', 's=str(input())\ns=list(s)\nif s[5]=="0" and (s[6]=="1" or s[6]=="2" or s[6]=="3" or s[6]=="4"):\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s384450995', 's033033404']
[2940.0, 3060.0]
[18.0, 17.0]
[141, 132]
p03109
u637381381
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(input().split("/"))\ns = y+m+d\n\nif s <= 20190430:\n print("Heisei")\nelse:\n print("TBD")', 'y,m,d = list(input().split("/"))\ns = int(y+m+d)\n\nif s <= 20190430:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s725381463', 's551001349']
[2940.0, 2940.0]
[17.0, 17.0]
[104, 109]
p03109
u639327832
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=int(input())\nb=0\nfor i in range(a):\n c=input().split()\n if c[1]=='BTC':\n b+=(float)c[0]*380000.0\n else:\n b+=(float)c[0]\nprint(b)\n \n \n \n \n", "a=int(input())\nb=0\nfor i in range(a):\n c=input().split()\n if c[1]=='BTC':\n b+=(float)c[0]*380000.0\n else:\n b+=(int)c[0]\nprint(b)\n \n \n \n \n", 'a=input().split(\'/\')\nif int(a[1]<=4):\n print("Heisei")\nelse:\n print("TBD")\n \n ', "a=int(input())\nb=0\nfor i in range(a):\n c=input().split()\n if c[1]='BTC':\n b+=(float)c[0]*380000.0\n else:\n b+=(int)c[0]\nprint(b)\n \n \n \n \n", 'a=input().split(\'/\')\nif int(a[1])<=4:\n print("Heisei")\nelse:\n print("TBD")\n \n \n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s246792153', 's324432410', 's641232055', 's901187625', 's543817113']
[2940.0, 2940.0, 3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[156, 154, 82, 153, 83]
p03109
u640319601
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\n\nd0 = datetime.date(2019, 4, 30)\nd = datetime.date(map(int, *input().split('/')))\n\nif d <= d0:\n print('Heisei')\nelse:\n print('TBD')", "import datetime\n \nd0 = datetime.date(2019, 4, 30)\nd = datetime.date(*map(int, input().split('/')))\n \nif d <= d0:\n print('Heisei')\nelse:\n print('TBD')"]
['Runtime Error', 'Accepted']
['s521380937', 's070636313']
[3444.0, 3312.0]
[21.0, 19.0]
[149, 151]
p03109
u643714578
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 or a==2019 and b<=4:\n print("Heiasei")\nelse:\n print("TBD")', 'a,b,c=map(int,input().split("/"))\nif a<2019 or a==2019 and b<=4:\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s272524095', 's704391055']
[2940.0, 2940.0]
[17.0, 18.0]
[104, 103]
p03109
u644694704
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\nimport sys\n\ndef _main():\n # args = sys.argv[1:]\n # args = [int(arg) for arg in args]\n datelist = sys.argv[1].split('/')\n year, month, day = [int(i) for i in datelist]\n\n if year< 2019:\n print('Heisei')\n elif year == 2019:\n if month<4:\n print('Heisei')\n elif month == 4:\n if day <= 30:\n print('Heisei')\n else:\n print('TBD')\n else:\n print('TBD')\n else:\n print('TBD')\n\nif __name__ == '__main__':\n _main()", "# coding: utf-8\n\nimport sys\n\ndef _main():\n # args = sys.argv[1:]\n # args = [int(arg) for arg in args]\n text = input()\n datelist = text.split('/')\n year, month, day = [int(i) for i in datelist]\n\n if year< 2019:\n print('Heisei')\n elif year == 2019:\n if month<4:\n print('Heisei')\n elif month == 4:\n if day <= 30:\n print('Heisei')\n else:\n print('TBD')\n else:\n print('TBD')\n else:\n print('TBD')\n\nif __name__ == '__main__':\n _main()"]
['Runtime Error', 'Accepted']
['s465137934', 's837971201']
[3064.0, 3064.0]
[17.0, 17.0]
[550, 562]
p03109
u647999897
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\nsplited = s.split("/")\n\nif int(splited[0]) > 2019:\n print("TBD")\nelif int(splited[1]) > 4:\n print("TBD")\nelif int(splited[2]) >= 30:\n print("TBD")\nelse:\n print("Heisei")\n', 's = input()\n\nsplited = s.split("/")\n\nif int(splited[0]) > 2019:\n print("TBD")\nelif int(splited[1]) > 4:\n print("TBD")\nelif int(splited[2]) > 30:\n print("TBD")\nelse:\n print("Heisei")\n']
['Wrong Answer', 'Accepted']
['s801475805', 's425957399']
[2940.0, 2940.0]
[17.0, 18.0]
[195, 194]
p03109
u648212584
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\nd = str(s).split(\'/\')\nif int(d[2]) >= 5:\n print("TBD")\nelse:\n print("Heisei")', 's = input()\n \nd = str(s).split(\'/\')\nif int(d[1]) >= 5:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s786106010', 's503923624']
[2940.0, 2940.0]
[17.0, 17.0]
[92, 93]
p03109
u648901783
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\nmonth = S[5:7]\nday = S[8:10]\n\n\nanswer = 'Heisei'\n\n\n\nif int(month)>4:\n answer = 'TBD'\n\n\n\nprint(int(S))", "S = input()\n\nmonth = S[5:7]\n\n# print(int(month))\nanswer = 'Heisei'\n\n\n\nif int(month)>4:\n answer = 'TBD'\n\n\n\nprint(answer)"]
['Runtime Error', 'Accepted']
['s699786255', 's851696050']
[2940.0, 3060.0]
[18.0, 19.0]
[117, 122]
p03109
u652081898
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\nif s[5] == 0:\n if s[6] > 4:\n print("TBD")\n else:\n print("Heisei")\n \nprint("TBD")\n', 's = input()\n\nif int(s[5]) == 1:\n print("TBD")\n exit()\n\nif int(s[6]) > 4:\n print("TBD")\nelse:\n print("Heisei")\n']
['Wrong Answer', 'Accepted']
['s968912746', 's331499134']
[2940.0, 2940.0]
[17.0, 18.0]
[121, 122]
p03109
u652656291
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()\nb =a[0]+a[1]+a[2]+a[3]+a[5]+a[6]+a[8]+a[9]\nc =int(a)\nif c <= 20190430:\n print('Heisei')\nelse:\n print('TBD')", "S = input()\nif S <= '2019/04/30':\n print('Heisei')\nelse:\n print('TBD')\n"]
['Runtime Error', 'Accepted']
['s466041782', 's527332134']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 77]
p03109
u653807637
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()\nyear, month = int(s[0:4]), int(s[5:7])\nprint(year, month)\n\nif year > 2019 or (year == 2019 and month > 4):\n\tprint("TBD")\nelse:\n\tprint("Heisei")', 's = input()\nyear, month = int(s[0:4]), int(s[5:7])\n#print(year, month)\n\nif year > 2019 or (year == 2019 and month > 4):\n\tprint("TBD")\nelse:\n\tprint("Heisei")']
['Wrong Answer', 'Accepted']
['s264597718', 's239439640']
[2940.0, 2940.0]
[17.0, 17.0]
[155, 156]
p03109
u655975843
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.
['#include <bits/stdc++.h>\nusing namespace std;\n\nint main() {\n string s;\n cin >> s;\n if(s > "2019/04/30"){\n cout << "TBD" << "\\n";\n }\n else{\n cout << "Heisei" << "\\n";\n }\n}\n', "s = input()\ns = s.split('/')\n\nfor i in range(len(s)):\n\ts[i] = int(s[i])\n\nif s[0] >= 2019:\n\tif s[1] >= 5:\n\t\tprint('TBD')\n\t\texit()\n\telse:\n\t\tprint('Heisei')\n\t\texit()\nelse:\n\tprint('Heisei')\n\texit()"]
['Runtime Error', 'Accepted']
['s817565081', 's299065214']
[2940.0, 2940.0]
[17.0, 17.0]
[203, 193]
p03109
u657913472
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.
['_,b,_=input().split(\'/\')\nprint("Heisei"if b<5 else"TBD")', '_,b,_=input().split(\'/\')\nprint("Heisei"if int(b)<5 else"TBD")']
['Runtime Error', 'Accepted']
['s251168862', 's352650316']
[2940.0, 2940.0]
[17.0, 18.0]
[56, 61]
p03109
u658627575
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()\nmonth = int(S[5]+S[6])\nif month >= 4:\n\tprint("TBD")\nelse:\n\tprint("Heisei")', 'S = input()\nmonth = int(S[6])\nif month >= 4:\n\tprint("TBD")\nelse:\n\tprint("Heisei")', 'S = input()\nmonth = int(S[5]+S[6])\nif month >= 5:\n\tprint("TBD")\nelse:\n\tprint("Heisei")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s028361115', 's622122714', 's085613953']
[2940.0, 3060.0, 2940.0]
[17.0, 19.0, 18.0]
[86, 81, 86]
p03109
u661576386
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("/")\nprint(a)\nif a[1] <= 4:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n', 'a = input().split("/")\nif a[1] <= 4:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n', 'a = int(input().split("/"))\nif a[1] <= 4:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n', 'S = input().split("/")\nif int(S[1]) < 5:\n print("Heisei")\nelse:\n print("TBD")\n \n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s212974138', 's313299087', 's386069214', 's141950062']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[89, 80, 85, 89]
p03109
u667505876
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\nS = str(input())\nif S < '2019/04/30':\n\tprint('Heisei')\n\nelse:\n\tprint('TBD')\n\n", "#coding:utf-8\n\nimport sys\nS = sys.stdin.readline().rstrip('\\n')\nif S <= '2019/04/30':\n\tprint('Heisei')\nelse:\n\tprint('TBD')\n\n"]
['Wrong Answer', 'Accepted']
['s711004231', 's259648249']
[2940.0, 2940.0]
[20.0, 17.0]
[92, 124]
p03109
u667694979
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\nif s<="2019/04/30":\n print("HEISEI")\nelse:\n print("TBD")', 's=input()\n\nif s<="2019/04/30":\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s303346852', 's180048903']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 69]
p03109
u670567845
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().split("/")\nmd = int(S[1] + S[2])\nif md > 430:\n print("TBD")\nelse:\n print("heisei")\n', 'S = input().split("/")\nmd = int(S[0] +S[1] + S[2])\nif md > 20190430:\n print("TBD")\nelse:\n print("Heisei")\n']
['Wrong Answer', 'Accepted']
['s259720081', 's119528982']
[3060.0, 2940.0]
[18.0, 17.0]
[97, 108]
p03109
u670961163
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 = s[:4]\nmo = s[5:7]\nda = s[8:]\n\nif year < 2019:\n ans = "Heisei"\nelif year == 2019 and mo<= 4:\n ans =\'Heisei\'\nelse:\n ans = \'TBD\'\nprint(ans)', 's = input()\n\nyear = int(s[:4])\nmo = int(s[5:7])\n\nif year < 2019:\n ans = "Heisei"\nelif year == 2019 and mo<= 4:\n ans =\'Heisei\'\nelse:\n ans = \'TBD\'\nprint(ans)']
['Runtime Error', 'Accepted']
['s694762340', 's980139795']
[8960.0, 9116.0]
[25.0, 24.0]
[159, 158]
p03109
u671211357
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().split("/")\nif int(S[0])>=2019 and int(S[1])>=5:\n print("TBD")\nelse:\n print("heisei")', 'S=input().split("/")\nif int(S[0])>=2019 and int(S[1])>=5:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s170674783', 's134861241']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 96]
p03109
u672316981
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())\nyear = ''\nmonth = ''\nday = ''\n\nfor i in range(4):\n y = s[i]\n year += y\nfor i in range(5, 7):\n m = s[i]\n month += m\nfor i in range(9, 11):\n d = s[i]\n day += d\n\nyear = int(year)\nmonth = int(month)\nday = int(day)\n\nif year < 2019:\n answer = 'Heisei'\n\nelif year == 2019 and month <= 4:\n answer = 'Heisei'\n\nelse:\n answer = 'TBD'\n \nprint(answer)", "s = str(input())\n\nyear = ''\nfor i in range(4):\n y = s[i]\n flag1 = True\n if y == '0':\n if len(year) == 0:\n flag1 = False\n if flag1:\n year += y\n else:\n year += y\nyear = int(year)\n\nmonth = ''\nfor i in range(5, 7):\n m = s[i]\n if i == 5 and m == '0':\n continue\n else:\n month += m\nmonth = int(month)\n\n\nif year < 2019:\n answer = 'Heisei'\n\nelif year == 2019 and month <= 4:\n answer = 'Heisei'\n\nelse:\n answer = 'TBD'\n\nprint(answer)"]
['Runtime Error', 'Accepted']
['s940093941', 's483886287']
[9024.0, 9116.0]
[23.0, 24.0]
[385, 509]
p03109
u672898046
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(s[5:7])\nif s[3] == "9":\n if s[5] == 1:\n print("TBD")\n else:\n if int(s[6]) > 4:\n print("Heisei")\nelse:\n print("Heisei")', 's = input()\nif s[3] == "9":\n if s[5] == 1:\n print("TBD")\n else:\n if int(s[6]) == 1:\n print("TBD")\n else:\n if int(s[7]) > 4:\n print("TBD")\n else:\n print("Heisei")\n \nelse:\n print("Heisei")', 's = input()\nif s[3] == "9":\n if s[5] == 1:\n print("TBD")\n else:\n if int(s[5]) == 1:\n print("TBD")\n else:\n if int(s[6]) > 4:\n print("TBD")\n else:\n print("Heisei")\n \nelse:\n print("Heisei")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s262060992', 's387082511', 's604159499']
[3060.0, 2940.0, 3060.0]
[17.0, 19.0, 17.0]
[150, 230, 230]
p03109
u673338219
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())\nt = int(s[0:4]+s[5:7]+s[8:10])\nif t > 2019430:\n print("TBD")\nelse:\n print("Heisei")\n', 's = str(input())\nt = int(s[0:4]+s[5:7]+s[8:10])\nif t > 20190430:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s487683769', 's992160794']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 103]
p03109
u676258045
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()\nbefore = ("Heisei")\nafter = ("TBD")\nif s[7] == 1 or s[7] == 2 or s[7] == 3 or s[7] == 4:\n print(before)\nelse:\n print(after)', 's = input()\nbefore("Heisei")\nafter("TBD")\nif s[7] == 1 or s[7] == 2 or s[7] == 3 or s[7] == 4:\n print(before)\nelse:\n print(after)', 's = input()\nbefore = ("Heisei")\nafter = ("TBD")\nif s[6] == "1" and s[5] == "0":\n print(before)\nelif s[6] == "2" and s[5] == "0":\n print(before)\nelif s[6] == "3":\n print(before)\nelif s[6] == "4":\n print(before)\nelse:\n print(after)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s254795633', 's359671449', 's257626194']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[141, 135, 244]
p03109
u681110193
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()s=input()\n\nif int(s[1])>4:\n print('TBD')\nelif int(s[0])==1:\n print('TBD')\nelse:\n print('Heisei')\n \n ", "s=input()\n\nif int(s[6])>4:\n print('TBD')\nelif int(s[5])==1:\n print('TBD')\nelse:\n print('Heisei')\n \n "]
['Runtime Error', 'Accepted']
['s328932395', 's914843373']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 105]
p03109
u681444474
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()\nb = a.split("/")\nc = [int(n) for n in b]\nif c[0] > 2018:\n print("PBD")\nelif c[0] < 2018:\n print("Heisei")\nelse:\n if c[1] >=5:\n print("PBD")\n else:\n print("Heisei")', 'a = input()\nb = a.split("/")\nc = [int(n) for n in b]\n\nif c[0] > 2019:\n print("TBD")\nelif c[0] < 2019:\n print("Heisei")\nelse:\n if c[1] >=5:\n print("TBD")\n else:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s488228021', 's150691595']
[3060.0, 3060.0]
[17.0, 18.0]
[201, 202]
p03109
u684695949
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 pandas as pd\ndate = pd.to_datetime(input().rstrip())\nif date > pd.to_datetime("2019/4/30"):\n print("TBD)\nelse:\n print("Heisei")', 'y,m,d = [int(s) for s in input().rstrip().split("/")]\n\nif y == 2019:\n if m >= 5:\n print("TBD")\n exit()\nelif y > 2019:\n print("TBD")\n exit()\n\nprint("Heisei")']
['Runtime Error', 'Accepted']
['s674144000', 's604653059']
[2940.0, 2940.0]
[17.0, 17.0]
[136, 165]
p03109
u685662874
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\ninput_date = datetime.datetime.strptime(input(), "%Y%m%d")\n\nheisei = datetime.datetime(2019,4,30)\nif input_date < heisei:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n\n\n\n', 'import datetime\ns=input()\n\ninput_date = datetime.datetime.strptime(s, "%Y/%m/%d")\nheisei = datetime.datetime(2019,4,30)\n\nif input_date < heisei:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n\n\n\n', 'from datetime import datetime\ninput_date = datetime.datetime(input(), "%Y%m%d")\n\nheisei = datetime.datetime(2019,4,30)\nif input_date < heisei:\n print(\'Heisei\')\nelse:\n print(\'TBD\')', 'import datetime\ns=input()\n\ninput_date = datetime.datetime.strptime(s, "%Y/%m/%d")\nheisei = datetime.datetime(2019,4,30)\n\nif input_date <= heisei:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n\n\n\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s319239091', 's319804507', 's610927926', 's406438992']
[3312.0, 4336.0, 3312.0, 4464.0]
[19.0, 31.0, 19.0, 32.0]
[198, 191, 185, 192]
p03109
u686036872
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().replace("/", ""))\nprint("Heisei" if S <= S else "TBD")', 'S = input().replace("/", "")\nprint("Heisei" if S <= 20190430 else "TBD")', 'S = int(input().replace("/", ""))\nif S <= 20190430:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s478415634', 's964136062', 's742089452']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[75, 72, 94]
p03109
u686751625
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 print('Heisei' if S <= '2019/04/30' else 'TBD')", "S = input()\n2 print('Heisei' if S <= '2019/04/30' else 'TBD')", "S = input()\nprint('Heisei' if S <= '2019/04/30' else 'TBD')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s877359270', 's944874692', 's928198004']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[60, 61, 59]
p03109
u687766076
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\ny, m, d = map(int, sys.stdin.readline().split("/"))\nif (y == 2019 and m <= 4) or y < 2019:\n print(\'heisei\')\nelse:\n print(\'TBD\')\n', 'import sys\n\ny, m, d = map(int, sys.stdin.readline().split("/"))\nif (y == 2019 and m <= 4) or y < 2019:\n print(\'Heisei\')\nelse:\n print(\'TBD\')\n']
['Wrong Answer', 'Accepted']
['s757047112', 's791431467']
[2940.0, 2940.0]
[17.0, 17.0]
[146, 146]
p03109
u690536347
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 and b>=5:\n print("TBD")\nelse:\n print("heisei")', 'a,b,c=map(int,input().split("/"))\nif b>=5:\n print("TBD")\nelse:\n print("heisei")', 'a,b,c=map(int,input().split("/"))\nif b>=5:\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s192485307', 's801538420', 's282044154']
[2940.0, 3060.0, 2940.0]
[17.0, 20.0, 17.0]
[93, 81, 81]
p03109
u691896522
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/30":\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s < "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s286448682', 's901853272', 's015915554']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[75, 75, 76]
p03109
u693007703
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\nbase_date = datetime.datetime.strptime(\'2019/04/30\', "%Y/%m/%d")\n\nS = input()\n\nS_date = datetime.datetime.strptime(S, "%Y/%m/%d")\n\nif S_date <= base_date:\n print(\'HEISEI\')\nelse :\n print(\'TBD\')', 'import datetime\nbase_date = datetime.datetime.strptime(\'2019/04/30\', "%Y/%m/%d")\n\nS = input()\n\nS_date = datetime.datetime.strptime(S, "%Y/%m/%d")\n\nif S_date <= base_date:\n print(\'Heisei\')\nelse :\n print(\'TBD\')']
['Wrong Answer', 'Accepted']
['s859333189', 's848393802']
[4568.0, 4440.0]
[34.0, 31.0]
[214, 214]
p03109
u694402282
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()\ny = int(s[0:4])\nm = int(s[5:7])\nd = int(s[8:10])\nif y > 2019:\n print("TBD")\nelif y=2019 and\tm>4:\n print("TBD")\nelse:\n print("Heisei")', 's = input()\ny = int(s[0:4])\nm = int(s[5:7])\nd = int(s[8:10])\nif y > 2019:\n print("TBD")\nelif y==2019 and\tm>4:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s804379534', 's596830557']
[2940.0, 3060.0]
[17.0, 17.0]
[154, 155]
p03109
u696486967
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=list(map(int, input().split(/)))\nif y>=5:\n print("TBD")\nelse:\n print("Heisei")', 'x, y, z=list(map(int, input().split("/")))\nif y>=5:\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s925120823', 's830638852']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 90]
p03109
u698501671
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]) <= int('5'):\n print('Heisei')\nelse:\n print('TBD')", "S = input()\nif S[5] == 0 and int(S[6]) <= int('5'):\n print('Heisei')\nelse:\n print('TBD')", "S = input()\nif S[5] == '0' and int(S[6]) < int('5'):\n print('Heisei')\nelse:\n print('TBD')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s727807853', 's805291023', 's175197678']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[94, 94, 95]
p03109
u698771758
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=int(input().replace("/",""))\nif a - 20190430 > 0:\n print("Heisei")\nelse:\n print("TBD")\n\n', 'a=int(input().replace("/",""))\nif a - 20190430 > 0:\n print("TBD")\nelse:\n print("Heisei")\n\n']
['Wrong Answer', 'Accepted']
['s374555062', 's147182433']
[2940.0, 2940.0]
[17.0, 18.0]
[96, 96]
p03109
u701318346
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[4:6] + S[7:9]\ns = int(s)\n\nif s < 501:\n print('Heisei')\nelse:\n print('TBD')", "S = input()\ns = S[5:7] + S[8:10]\ns = int(s)\n\nif s < 501:\n print('Heisei')\nelse:\n print('TBD')\n"]
['Runtime Error', 'Accepted']
['s072027290', 's983444921']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 96]
p03109
u704001626
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 = int(input())\nif a <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")', 'a = input()\nif a <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s947007809', 's324768362']
[2940.0, 2940.0]
[17.0, 17.0]
[77, 72]
p03109
u705418271
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())\nsum=0\nfor j in range(n):\n i,c=input().split()\n if c=="BTC":\n sum+=float(i)*380000\n else:\n sum+=int(i)\nprint(sum)', 's=input()\nif s<="2019/04/30":\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s525763351', 's172300522']
[9164.0, 9004.0]
[25.0, 24.0]
[136, 68]
p03109
u711539583
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()\ny, m, d = map(int, S.split("/"))\nans = "Heisei"\nif y > 2019:\n ans = "TBD"\nelif y == 2019:\n if m > 5:\n ans = "TBD"\n elif m == 4 and d == 30:\n ans = "TBD"\nprint(ans)\n', 'S = input()\ny, m, d = map(int, S.split("/"))\nans = "Heisei"\nif y > 2019:\n ans = "TBD"\nelif y == 2019:\n if m > 4:\n ans = "TBD"\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s948863314', 's843902619']
[3064.0, 2940.0]
[17.0, 17.0]
[199, 150]
p03109
u714300041
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\n\ns = str(input())\n\ny, m, d = s.split("/")\n\ny, m, d = int(y), int(m), int(d)\n\nif y < 2019:\n print("Heisei")\nelif y==2019 and m<4:\n print("Heisei")\nelif y==2019 and m=4 and d < 30:\n print("Heisei")\nelse:\n print("TBD")', 'import numpy as np\n\ns = str(input())\n\ny, m, d = s.split("/")\n\ny, m, d = int(y), int(m), int(d)\n\nif y < 2019:\n print("Heisei")\nelif y==2019 and m<4:\n print("Heisei")\nelif y==2019 and m==4 and d < 30:\n print("Heisei")\nelse:\n print("TBD")', 'import numpy as np\n\ns = str(input())\n\ny, m, d = s.split("/")\n\nprint(y, m, d)', 'import numpy as np\n\ns = str(input())\ny, m, d = s.split("/")\n\ny, m, d = int(y), int(m), int(d)\n\nif y < 2019:\n print("Heisei")\nelif y==2019 and m<4:\n print("Heisei")\nelif y==2019 and m==4 and d <= 30:\n print("Heisei")\nelse:\n print("TBD")\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s130921440', 's203779431', 's473321282', 's202704000']
[2940.0, 17812.0, 18736.0, 18860.0]
[17.0, 256.0, 289.0, 971.0]
[238, 239, 76, 240]
p03109
u716043626
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')"]
['Runtime Error', 'Accepted']
['s919945923', 's963397848']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 59]
p03109
u716277711
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/4/30:\n print(Heisei)\nelse:\n print(TBD)', "S=input()\nif S<='2019/04/30':\n print('Heisei')\nelse:\n print('TBD')\n"]
['Runtime Error', 'Accepted']
['s123053700', 's237919934']
[3188.0, 2940.0]
[17.0, 17.0]
[61, 69]
p03109
u719352179
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/30:\n print("Heisei")\nelse:\n print("TBD")', 'if S >= 2019/04/30:\n print("Heisei")\n \nelse:\n print("TBD")', 'S = input()\n\nif S <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s688861151', 's697539937', 's973929850']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[70, 61, 77]
p03109
u720636500
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(/))\nboo = False\nif Y < 2019:\n boo = True\nelse:\n if Y == 2019 and M <= 4:\n boo = True\nif boo:\n print("Heisei")\nelse:\n print("TBD")', 'Y, M, D = map(int, input().split("/"))\nboo = False\nif Y < 2019:\n boo = True\nelse:\n if Y == 2019 and M <= 4:\n boo = True\nif boo:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s854143264', 's700579634']
[2940.0, 2940.0]
[17.0, 17.0]
[169, 171]
p03109
u721425712
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)\nif s[1] >= 5:\n print('TBD')\nelif s[1] <= 4:\n print('Heisei')", "s = list(map(int, input().split('/')))\n\nif s[1] > 5:\n print('TBD')\nelif s[i] <= 4:\n print('Heisei')", "s = list(map(int, input().split('/')))\n\nif s[1] >= 5:\n print('TBD')\nelif s[1] <= 4:\n print('Heisei')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s145088279', 's486311813', 's636750182']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[115, 105, 106]
p03109
u730710086
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: <encoding name> -*-\n\ns = input()\nprint('Heisei' if s < '2019/04/30' else 'TBD')", "# -*- coding: <encoding name> -*-\n\ns = input()\nprint('Heisei' if s <= '2019/04/30' else 'TBD')"]
['Wrong Answer', 'Accepted']
['s322922166', 's793096928']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 94]
p03109
u735008991
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 = sorted(input())\nt = sorted(input())[:: -1]\nprint("Yes" if s < t else "No")\n', "S = input()\nprint('Heisei' if S <= '2019/04/30' else 'TBD')\n"]
['Runtime Error', 'Accepted']
['s553178748', 's783221811']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 60]
p03109
u736339585
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 = input()\nyyyy, mm, dd = x.split("/")\nif mm <= 4:\n print("Heisei")\nelse:\n print("TBD")\nexit(0)', 'x = input()\nyyyy, mm, dd = x.split("/")\nif mm <= 4:\n print("Heisei")\nelse:\n print("TBD")\n ', 'x = input()\nyyyy, mm, dd = x.split("/")\nif int(mm) <= 4:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s066696296', 's706061898', 's336950434']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[98, 93, 95]
p03109
u736788838
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 = int(input().replace("/", ""))\nif date <= 20190430:\n print("Heisei")\nelse:\n print("TBD")S = list(map(int, input().split("/")))\nans = True\nif S[0] > 2019:\n ans = False\nelif S[0] == 2019 and S[1] > 4:\n ans = False\n\nif ans:\n print("Heisei")\nelse:\n print("TBD")', 'S = list(map(int, input().split("/")))\nans = True\nif S[0] > 2019:\n ans = False\nelif S[0] == 2019 and S[1] > 4:\n ans = False\n\nif ans:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s028780438', 's689569593']
[2940.0, 3060.0]
[17.0, 18.0]
[281, 181]
p03109
u739362834
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)\nif y > 2019:\n print("TBD")\nelif y == 2019:\n if m > 5:\n print("TBD")\n else:\n print("Heisei")\nelse:\n print("Heisei")\n', 'y, m, d = input().split("/")\nif y > 2019:\n print("TBD")\nelif y == 2019:\n if m > 5:\n print("TBD")\nelse:\n print("Heisei")', 'import bisect\n\nA, B, Q = map(int, input().split())\nS = []\nfor i in range(A):\n S.append(int(input()))\nT = []\nfor i in range(B):\n T.append(int(input()))\nX = []\nfor i in range(Q):\n X.append(int(input()))\n\nfor x in X:\n sxi, txi = bisect.bisect_right(S, x), bisect.bisect_right(T, x)\n print(min(abs(s-t)+min(abs(s-x), abs(t-x))\n for s in S[sxi-1:sxi+1] for t in T[txi-1:txi+1]))\n', '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")\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s561086322', 's658635453', 's678815586', 's222571196']
[2940.0, 2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[195, 135, 402, 180]
p03109
u740047492
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 int(input().replace("/", ""))<=20190430 else "TBD"', 'a=input()\nprint("Heisei" if int(a.replace("/", ""))<=2019430 else "TBD")', 'a=input()\na.replace("/", "")\nprint("Heisei" if int(a)<=20190430 else "TBD")', 'a=int(input())\na.remove("/","")\nprint("Heisei" if a<=2019430 else "TBD")', 'print("Heisei" if int(input().replace("/", ""))<=2019430 else "TBD")', 'a=int(input())\na.replace("/","")\nprint("Heisei" if a<=2019430 else "TBD")', 'a=input()\na.replace("/", "")\nprint("Heisei" if int(a)<=2019430 else "TBD")', 'a=input()\na.replace("/","")\nprint("Heisei" if int(a)<=2019430 else "TBD")', 'a=int(input())\na.rempve("/","")\nprint("Heisei" if a<=2019430 else "TBD")', 'a=input()\nprint("Heisei" if int(a.replace("/", ""))<=20190430 else "TBD")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s137014758', 's194198194', 's237521145', 's255681312', 's275529835', 's311420138', 's594732078', 's665586016', 's974060319', 's536017888']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 19.0]
[68, 72, 75, 72, 68, 73, 74, 73, 72, 73]
p03109
u740767776
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('/')))\nprint(y)\nprint(m)\nprint(d)\nif y <= 2019 and m <=4 and d <= 30:\n print('Heisei')\nelse:\n print('TBD')\n", "y,m,d=list(map(int,input().split('/')))\nif y <= 2019 and m <=4 and d <= 30:\n print('Heisei')\nelse:\n print('TBD')\n"]
['Wrong Answer', 'Accepted']
['s856445545', 's793796917']
[2940.0, 2940.0]
[17.0, 17.0]
[146, 119]
p03109
u742087517
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()\nm= int(S[5:7])\nif S>4:\n print('TBD')\nelse:\n print('Heisei')", "y, m, d =list(map(int, input().split('/')))\nif y<2019:\n print('Heisei')\nelif m=<4:\n print('Heisei')\nelse:\n print('TBD')\n\n", 'S = input()\na = int(S[5:7])\nif a >4:\n print("TBD")\nelse:\n print("Heisei")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s410218423', 's873974241', 's976069537']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[72, 124, 80]
p03109
u742306624
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#include<stdio.h>\n\n\n#include<set>\n\n#include<sstream>\n#include<string.h>\n#include<complex>\n#include<time.h>\n#include<random>\n#include<cmath>\n#include<math.h>\n\n#include<time.h>\n#include<iomanip>\n#include<locale>\n\n#define rt "\\n"\n#define rep(i,n) for(int i=0;i<n;i++)\n#define rop(i,n) for(int i=1;i<=n;i++)\n\n\n#define yes(ans) if(ans)cout<<"yes"<<rt;else cout<<"no"<<rt;\n#define Yes(ans) if(ans)cout<<"Yes"<<rt;else cout<<"No"<<rt;\n#define YES(ans) if(ans)cout<<"YES"<<rt;else cout<<"NO"<<rt;\n#define sec(a,b,ans) if(ans)cout<<a<<rt;else cout<<b<<rt;\n\n\n#define reve(s) reverse(s.begin(),s.end())\n#define asas int ans=0\n\n\n#define str string\n#define please return\n#define AC 0\n#define Rapid cin.tie(0);ios::sync_with_stdio(false)\n#define Pi 3.1415926535897932384626\n\n\nusing namespace std;\ntypedef vector<int> vint;\ntypedef vector<string> vstr;\ntypedef vector<char> vchar;\ntypedef vector<double> vdou;\ntypedef long long int llint;\ntypedef pair<int, int> pint;\ntypedef pair<llint, llint> pllint;\ntypedef vector<llint> vllint;\ntypedef vector<pint> vpint;\ntypedef vector<pair<llint, llint>> vpllint;\ntypedef vector<vector<int>> vvint;\ntypedef vector<vector<char>> vvchar;\ntypedef vector<vector<llint>> vvllint;\ntypedef vector<vector<string>> vvstr;\ntypedef vector<vector<bool>> vvbool;\ntypedef vector<vector<pint>> vvpint;\ntypedef vector<bool> vbool;\n\nlong long GCD(long long a, long long b) {\n\tif (b == 0) return a;\n\telse return GCD(b, a % b);\n}\n\nlong long LCM(long long a, long long b) {\n\treturn a * b / GCD(a, b);\n}\n\nunsigned GetDigit(unsigned num) {\n\treturn std::to_string(num).length();\n}\n\nint tow(int n) {//2のn乗\n\tif (n == 0)return 1;\n\tint x = tow(n / 2);\n\tx *= x;\n\tif (n % 2 == 1)x *= 2;\n\treturn x;//@domino\n}\n\n/*\n \n (char)toupper(a[n])=文字列のn文字目を大文字で出力\n\n pow(a,b)=aのb乗\n\n */\n\nint a = 0, b = 0, c = 0;\n\nint main(void) {\n\tRapid;//固定高速\n\n\tstring s,t="2019/04/30";\n\tcin >> s;\n\tif (s > t)cout << "TBD" << rt;\n\telse cout << "heisei" << rt;\n\n\tplease AC;\n}', '\n#include<stdio.h>\n\n\n#include<set>\n\n#include<sstream>\n#include<string.h>\n#include<complex>\n#include<time.h>\n#include<random>\n#include<cmath>\n#include<math.h>\n\n#include<time.h>\n#include<iomanip>\n#include<locale>\n\n#define rt "\\n"\n#define rep(i,n) for(int i=0;i<n;i++)\n#define rop(i,n) for(int i=1;i<=n;i++)\n\n\n#define yes(ans) if(ans)cout<<"yes"<<rt;else cout<<"no"<<rt;\n#define Yes(ans) if(ans)cout<<"Yes"<<rt;else cout<<"No"<<rt;\n#define YES(ans) if(ans)cout<<"YES"<<rt;else cout<<"NO"<<rt;\n#define sec(a,b,ans) if(ans)cout<<a<<rt;else cout<<b<<rt;\n\n\n#define reve(s) reverse(s.begin(),s.end())\n#define asas int ans=0\n\n\n#define str string\n#define please return\n#define AC 0\n#define Rapid cin.tie(0);ios::sync_with_stdio(false)\n#define Pi 3.1415926535897932384626\n\n\nusing namespace std;\ntypedef vector<int> vint;\ntypedef vector<string> vstr;\ntypedef vector<char> vchar;\ntypedef vector<double> vdou;\ntypedef long long int llint;\ntypedef pair<int, int> pint;\ntypedef pair<llint, llint> pllint;\ntypedef vector<llint> vllint;\ntypedef vector<pint> vpint;\ntypedef vector<pair<llint, llint>> vpllint;\ntypedef vector<vector<int>> vvint;\ntypedef vector<vector<char>> vvchar;\ntypedef vector<vector<llint>> vvllint;\ntypedef vector<vector<string>> vvstr;\ntypedef vector<vector<bool>> vvbool;\ntypedef vector<vector<pint>> vvpint;\ntypedef vector<bool> vbool;\n\nlong long GCD(long long a, long long b) {\n\tif (b == 0) return a;\n\telse return GCD(b, a % b);\n}\n\nlong long LCM(long long a, long long b) {\n\treturn a * b / GCD(a, b);\n}\n\nunsigned GetDigit(unsigned num) {\n\treturn std::to_string(num).length();\n}\n\nint tow(int n) {//2のn乗\n\tif (n == 0)return 1;\n\tint x = tow(n / 2);\n\tx *= x;\n\tif (n % 2 == 1)x *= 2;\n\treturn x;//@domino\n}\n\n/*\n \n (char)toupper(a[n])=文字列のn文字目を大文字で出力\n\n pow(a,b)=aのb乗\n\n */\n\nint a = 0, b = 0, c = 0;\n\nint main(void) {\n\tRapid;//固定高速\n\n\tstring s,t="2019/04/30";\n\tcin >> s;\n\tstring ans;\n\tif (s <= t)ans = "heisei";\n\telse ans = "TBD";\n\tcout << ans << rt;\n\n\tplease AC;\n}', "s=str(input())\nt='2019/04/30'\nif t<s:\n print('TBD')\nelse:\n print('heisei')\n", '\n#include<stdio.h>\n\n\n#include<set>\n\n#include<sstream>\n#include<string.h>\n#include<complex>\n#include<time.h>\n#include<random>\n#include<cmath>\n#include<math.h>\n\n#include<time.h>\n#include<iomanip>\n#include<locale>\n\n#define rt "\\n"\n#define rep(i,n) for(int i=0;i<n;i++)\n#define rop(i,n) for(int i=1;i<=n;i++)\n\n\n#define yes(ans) if(ans)cout<<"yes"<<rt;else cout<<"no"<<rt;\n#define Yes(ans) if(ans)cout<<"Yes"<<rt;else cout<<"No"<<rt;\n#define YES(ans) if(ans)cout<<"YES"<<rt;else cout<<"NO"<<rt;\n#define sec(a,b,ans) if(ans)cout<<a<<rt;else cout<<b<<rt;\n\n\n#define reve(s) reverse(s.begin(),s.end())\n#define asas int ans=0\n\n\n#define str string\n#define please return\n#define AC 0\n#define Rapid cin.tie(0);ios::sync_with_stdio(false)\n#define Pi 3.1415926535897932384626\n\n\nusing namespace std;\ntypedef vector<int> vint;\ntypedef vector<string> vstr;\ntypedef vector<char> vchar;\ntypedef vector<double> vdou;\ntypedef long long int llint;\ntypedef pair<int, int> pint;\ntypedef pair<llint, llint> pllint;\ntypedef vector<llint> vllint;\ntypedef vector<pint> vpint;\ntypedef vector<pair<llint, llint>> vpllint;\ntypedef vector<vector<int>> vvint;\ntypedef vector<vector<char>> vvchar;\ntypedef vector<vector<llint>> vvllint;\ntypedef vector<vector<string>> vvstr;\ntypedef vector<vector<bool>> vvbool;\ntypedef vector<vector<pint>> vvpint;\ntypedef vector<bool> vbool;\n\nlong long GCD(long long a, long long b) {\n\tif (b == 0) return a;\n\telse return GCD(b, a % b);\n}\n\nlong long LCM(long long a, long long b) {\n\treturn a * b / GCD(a, b);\n}\n\nunsigned GetDigit(unsigned num) {\n\treturn std::to_string(num).length();\n}\n\nint tow(int n) {//2のn乗\n\tif (n == 0)return 1;\n\tint x = tow(n / 2);\n\tx *= x;\n\tif (n % 2 == 1)x *= 2;\n\treturn x;//@domino\n}\n\n/*\n \n (char)toupper(a[n])=文字列のn文字目を大文字で出力\n\n pow(a,b)=aのb乗\n\n */\n\nint a = 0, b = 0, c = 0;\n\nint main(void) {\n\n\tstring s,t="2019/04/30";\n\tcin >> s;\n\tif (s > t)cout << "TBD" << rt;\n\telse cout << "heisei" << rt;\n\n\tplease AC;\n}', "s=str(input())\nt='2019/04/30'\nif t<s:\n print('TBD')\nelse:\n print('Heisei')"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s741522238', 's749650383', 's757716922', 's932388318', 's914659565']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0, 17.0]
[2511, 2529, 81, 2489, 80]
p03109
u747602774
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().split('/')\nfor n in range(3):\n S[n]=int(S[n])\nprint(S)\nif S[0]>=2020 or (S[0]==2019 and S[1]>=5):\n print('TDB')\nelse:\n print('Heisei')\n", "S=input().split('/')\nfor n in range(3):\n S[n]=int(S[n])\nprint(S)\nif S[0]>=2020 or (S[0]==2019 and S[1]>=5):\n print('TBD')\nelse:\n print('Heisei')", "print('Heisei' if input() <= '2019/04/30' else 'TBD')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s094253705', 's163437051', 's363796200']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 21.0]
[154, 153, 53]
p03109
u748311048
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\nif int(S[0:4])<2019:\n print('HEISEI')\nelif int(S[0:4])==2019 and int(S[5:7])<=4:\n print('HEISEI')\nelse:\n print('TBD')\n\n ", "S=input()\n\nif int(S[0:4])<2019:\n print('Heisei')\nelif int(S[0:4])==2019 and int(S[5:7])<=4:\n print('Heisei')\nelse:\n print('TBD')\n\n "]
['Wrong Answer', 'Accepted']
['s368206932', 's314038762']
[2940.0, 2940.0]
[17.0, 17.0]
[135, 135]
p03109
u749491107
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 = input().split("/")\nif int(a) < 2019:\n print("Heisei")\nelif int(a) == 2019 and int(b) <= 4:\n print("Heiesei")\nelse:\n print("TBD")', 'a, b, c = input().split("/")\nif int(a) < 2019:\n print("Heisei")\nelif int(a) == 2019 and int(b) <= 4:\n print("Heisei")\nelse:\n print("TBD")']
['Wrong Answer', 'Accepted']
['s815398089', 's859098658']
[9108.0, 8956.0]
[26.0, 30.0]
[147, 146]
p03109
u758715225
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 = [int(item) for item in S.split('/')]\n\nif (int(year) >= 2019) & (int(month) >= 5):\n\tprint('TBD')\nelse:\n\tprint('Heisei')", "S = input()\n\nyear, month, day = [int(item) for item in S.split('/')]\n\nif (int(year) >= 2019) & (int(month) >= 5):\n\tprint('TBD')\nelse:\n\tprint('Heisei')"]
['Runtime Error', 'Accepted']
['s160088255', 's844625545']
[2940.0, 2940.0]
[17.0, 17.0]
[137, 150]
p03109
u759412327
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()\n\nif int(a[6:8])<=4:\n print("Heisei")\nelse:\n print("TBD")', 'if int(input()[5:7])<5:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s598876754', 's438843630']
[2940.0, 9024.0]
[17.0, 32.0]
[70, 62]
p03109
u761989513
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 java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.compareTo("2019/04/30") <= 0){\n System.out.println("Heisei");\n } else {\n System.out.println("TBD");\n }\n }\n}\n', 's = list(map(int, input().split("/")))\nif s[1] <= 4:\n print("Heisei")\nelse:\n print("TBD")']
['Runtime Error', 'Accepted']
['s267084084', 's461854069']
[2940.0, 2940.0]
[17.0, 17.0]
[321, 95]
p03109
u763249708
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, def)\nif 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")']
['Runtime Error', 'Accepted']
['s567248186', 's916550277']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 92]
p03109
u764600134
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\nimport sys\n\n\ndef main(args):\n S = input()\n yyyy, mm, dd = map(int, S.split('/'))\n if yyyy >= 2019 and mm >= 5:\n print('TBD')\n else:\n print('Helsei')\n\nif __name__ == '__main__':\n main(sys.argv[1:])\n", "# -*- coding: utf-8 -*-\n\nimport sys\n\n\ndef main(args):\n S = input()\n yyyy, mm, dd = map(int, S.split('/'))\n if yyyy >= 2019 and mm >= 5:\n print('TBD')\n else:\n print('Heisei')\n\nif __name__ == '__main__':\n main(sys.argv[1:])\n"]
['Wrong Answer', 'Accepted']
['s374850253', 's459439394']
[2940.0, 2940.0]
[18.0, 17.0]
[323, 323]
p03109
u766235618
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.
['day = input().split("/")\n\nmonth = int(day[1])\n\nif (month >= 5):\n print("TBD")\nelse:\n print("heisei")\n', 'day = input().split("/")\n\nmonth = int(day[1])\n\nif (month >= 5):\n print("TBD")\nelse:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s073872319', 's674920730']
[3064.0, 2940.0]
[18.0, 17.0]
[107, 106]
p03109
u771532493
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=(int(i) for i in input().split("/"))\nif B>4:\n print("TBD")\nelif B<=4:\n print("heisei")', 'A,B,C=(int(i) for i in input().split("/"))\nif B>4:\n print("TBD")\nelif B<=4:\n print("Heisei")']
['Wrong Answer', 'Accepted']
['s755574557', 's896173816']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 98]
p03109
u774985302
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(str,input().split("/"))\nif int(A) <= 2018:\n print("Heisei")\nelif int(A) = 2019,int(B) <=4,int(C)<=30:\n print("Heisei")\nelse int(A)>=2019:\nprint("TBD")', 'A,B,C = map(str,input().split("/"))\nif int(A) <= 2018:\n print("Heisei")\nelif int(A) = 2019,int(B) <=4,int(C)<=30:\n print("Heisei")\nelse:\nprint("TBD")', 'A,B,C = map(str,input().split("/"))\nif int(A) <= 2018:\n print("Heisei")\nelif int(A) = 2019,int(B) <=4,int(C)<=30:\n print("Heisei")\nelif int(A)>=2019:\nprint("TBD")', 'A,B,C = map(str,input().split("/"))\nif int(A) <= 2018:\n print("Heisei")\nelif int(A) = 2019 and int(B) <=4 and int(C)<=30:\n print("Heisei")\nelse:\nprint("TBD")', 'A,B,C = map(str,input().split())\nif A <= 2018:\n print("Heisei")\nelif B <=3:\n print("Heisei")\nelif C <=29:\n print("Heisei")\nelse:\n print("TBG")\n \n', 'A,B,C = map(str,input().split("/"))\nif int(A) <= 2018:\n print("Heisei")\nelif int(A) == 2019 and int(B) <=4 and int(C)<=30:\n print("Heisei")\nelse:\n print("TBD")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s266807923', 's447001630', 's447209176', 's554367782', 's893125139', 's653685566']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[164, 151, 164, 159, 150, 163]
p03109
u777864981
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[5]) = 1):\n print("TBD")\nelif(int(a[6]) > 4):\n print("TBD")\nelse:\n print("Heisei")', 'a = input()\nif(a[5] == "1"):\n print("TBD")\nelif(int(a[6]) > 4):\n print("TBD")\nelse:\n print("Heisei")']
['Runtime Error', 'Accepted']
['s535875336', 's301142240']
[2940.0, 2940.0]
[17.0, 17.0]
[111, 109]
p03109
u778700306
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.
['\ny,m,d=map(int, input().split())\n\n\nheisei = False\nheisei = heisei or y < 2019\nheisei = heisei or y == 2019 and m < 4\nheisei = heisei or y == 2019 and m == 4 and d <= 30\n\nprint("Heisei" if heisei else "TBD")\n', '\ny,m,d=input().split()\n\nheisei = False:\nheisei = heisei or y < 2019:\nheisei = heisei or y == 2019 and m < 4\nheisei = heisei or y == 2019 and m == 4 and d <= 30:\n\nprint("Heisei" if heisei else "TBD")\n', '\ny,m,d=map(int, input().split(\'/\'))\n\n\nheisei = False\nheisei = heisei or y < 2019\nheisei = heisei or y == 2019 and m < 4\nheisei = heisei or y == 2019 and m == 4 and d <= 30\n\nprint("Heisei" if heisei else "TBD")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s333149761', 's802213185', 's640330203']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[207, 199, 210]
p03109
u780698286
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 int(s[6]) >= 5:\n print("TBD")\nelse:\n print("Heisei")', 's = input()\nif s[5] == "1":\n print("TBD")\nelif int(s[6]) >= 5:\n print("TBD")\nelse:\n print("Heisei")\n']
['Runtime Error', 'Accepted']
['s172520556', 's694680923']
[8824.0, 9000.0]
[30.0, 26.0]
[101, 103]
p03109
u787562674
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\n\n# if not (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')):\n\n# else:\n# print('TBD')\na = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days\nprint(a)\nif a >= 0:\n print('Heisei')\nelse:\n print('TBD')", "import datetime\n\na = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days\n\nprint('Heisei' a >= 0 else 'TBD')\n", "import datetime\n\na = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days\n\nprint('Heisei'a >= 0 else 'TBD')\n", "print('Heisei' if input() <= '2019/04/30' else 'TBD')"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s583920743', 's635584392', 's875887422', 's313977715']
[4712.0, 2940.0, 2940.0, 2940.0]
[51.0, 17.0, 17.0, 18.0]
[358, 167, 166, 53]
p03109
u788137651
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/30":\n print("TBD")\nelse:\n print("Heisei")\n', 'S = input()\nif S > "2019/04/30":\n print("TBD")\nelse:\n print("Heisei")\n']
['Wrong Answer', 'Accepted']
['s876179051', 's755099320']
[2940.0, 2940.0]
[20.0, 18.0]
[77, 76]
p03109
u788703383
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\nprint(s[:4])\nprint(s[5:7])\nprint(s[:4])\n\nif int(s[:4]) <= 2019:\n if int(s[5:7]) <= 4:\n if int(s[8:]) <= 30:\n print("Heisei");exit()\nprint("TBD")\n', 's = input()\na = int(s[:4])\nb = int(s[5:7])\nc = int(s[8:])\nn = a * 10000 + b * 100 + c\nif n <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n']
['Wrong Answer', 'Accepted']
['s138154937', 's021264546']
[2940.0, 9172.0]
[18.0, 23.0]
[179, 147]
p03109
u793633137
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())\ns=[input().split() for i in range(N)]\nM=0\nfor i in range(N):\n p=int(i)\n if s[p][1]=="JPY":\n M=M+float(s[p][0])\n else:\n M=M+float(s[p][0])*380000.0\nprint(M)\n\n', 'a,b,c=map(int, input().split("/"))\n\nif a<2019:\n print("Heisei")\nelif a>2019:\n print("TBD")\nelse :\n if b<5:\n print("Heisei")\n else:\n print("TBD")\n']
['Runtime Error', 'Accepted']
['s446297665', 's665359013']
[3060.0, 2940.0]
[19.0, 17.0]
[181, 171]
p03109
u797550216
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())\n\nx = b // a\n\nif x <= c:\n\tprint(x)\n\nelse:\n\tprint(c)', 'a,b,c = map(int,input().split())\n\nx = b // a\n\nif x <= c:\n\tprint(x)\n\nelse:\n\tprint(c)\n', "S = list(map(int,input().split('/')))\n\nif S[1] > 4 :\n print('TBD')\nelse:\n print('Heisei')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s140471070', 's434109821', 's518179052']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[83, 84, 91]
p03109
u800780376
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().split("/")\n\nif S[0]>= 2020:\n print("TBD")\nelif S[0] == 2019:\n if S[1] >5:\n print("TBD")\n else:\n print("Heisei")\nelse:\n print("Heisei")', 'S = input().split("/")\n\n\nif int(S[0])>= 2020:\n print("TBD")\nelif int(S[0]) == 2019:\n if int(S[1]) >=5:\n print("TBD")\n else:\n print("Heisei")\nelse:\n print("Heisei")\n']
['Runtime Error', 'Accepted']
['s695029259', 's002079886']
[2940.0, 2940.0]
[18.0, 17.0]
[156, 174]
p03109
u807889603
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()\nsy = int(s[0:4])\nsm = int(s[5:7])\nsd = int(s[8:10])\nif sy > 2019:\n print("TBD")\nelif sy < 2019:\n print("Heisei")\nelse:\n if sm > 4:\n print("TBD")\n elif sm < 4:\n print("Heisei")\n', 's = input()\nsy = int(s[0:4])\nsm = int(s[5:7])\nsd = int(s[8:10])\nif sy > 2019:\n print("TBD")\nelif sy < 2019:\n print("Heisei")\nelse:\n if sm > 4:\n print("TBD")\n elif sm <= 4:\n print("Heisei")\n']
['Wrong Answer', 'Accepted']
['s700968667', 's663990794']
[2940.0, 2940.0]
[17.0, 17.0]
[214, 215]
p03109
u812587837
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.
["\nimport datetime\n\ny,m,d = map(int, input().split('/'))\nif y<2019:\n print('Heisei')\nelif y>2019:\n print('TBD')\nelse:\n if m<4:\n print('Heisei')\n elif m>4:\n print('TBD')\n else:\n if d<30:\n print('Heisei')\n else:\n print('TBD')", "\nimport datetime\n\ny,m,d = map(int, input().split('/'))\nif y<2019:\n print('Heisei')\nelif y>2019:\n print('TBD')\nelse:\n if m<4:\n print('Heisei')\n elif m>4:\n print('TBD')\n else:\n if d<=30:\n print('Heisei')\n else:\n print('TBD')"]
['Wrong Answer', 'Accepted']
['s852837753', 's288939289']
[3312.0, 3312.0]
[19.0, 19.0]
[302, 303]
p03109
u815666840
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())\n\nnexts = s.replace("/","")\n\nsint = int(nexts)\n\nprint(sint)\n\n\nif sint <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n', 's = str(input())\n\nnexts = s.replace("/","")\n\nsint = int(nexts)\n\nprint(sint)\n\n\nif sint <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n \n', 's = str(input())\n\nnexts = s.replace("/","")\n\nsint = int(nexts)\n\nprint(sint)\n\n\nif sint <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n', 's = str(input())\n\nnexts = s.replace("/","")\n\nsint = int(nexts)\n\nif sint <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s196210417', 's587337900', 's906271006', 's311018814']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0]
[142, 147, 142, 128]
p03109
u816919571
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 = input().split("/")\nflag = False\nif(int(y) > 2019) :\n flag = True\nelif(int(y) == 2019):\n if(m>=5):\n flag = True\nprint("TBD" if flag else "Heisei")', 'y,m,d = input().split("/")\nflag = False\nif(int(y) > 2019) :\n flag = True\nelif(int(y) == 2019):\n if(int(m)>=5):\n flag = True\nprint("TBD" if flag else "Heisei")']
['Runtime Error', 'Accepted']
['s024487149', 's699389585']
[2940.0, 2940.0]
[17.0, 17.0]
[158, 163]
p03109
u823871776
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\nimport itertools\n \na, b, q = map(int, input().split())\nss, tt = [], []\nfor _ in range(a):\n ss.append(int(input()))\nfor _ in range(b):\n tt.append(int(input()))\n \nfor _ in range(q):\n x = int(input())\n md = pow(10, 15)\n xs, xt = bisect.bisect_left(ss, x), bisect.bisect_left(tt, x)\n ls, rs, lt, rt = ss[max(0, xs-1)], ss[min(a-1, xs)], tt[max(0, xt-1)], tt[min(b-1, xt)]\n for s, t in itertools.product([ls, rs], [lt, rt]):\n if s > t:\n if t > x:\n md = s - x if s - x < md else md\n elif s > x:\n if md > 2 * (s-x) + x-t:\n md = 2 * (s-x) + x-t\n if md > 2 * (x-t) + s-x:\n md = 2 * (x-t) + s-x\n else:\n md = x - t if x - t < md else md\n else: # t > s\n if s > x:\n md = t - x if t - x < md else md\n elif t > x:\n if md > 2 * (x-s) + t-x:\n md = 2 * (x-s) + t-x\n if md > 2 * (t-x) + x-s:\n md = 2 * (t-x) + x-s\n else:\n md = x - s if x - s < md else md\n print(md)', 'def solve():\n y,m,d = map(int, input().split("/"))\n if y < 2019: \n return "Heisei"\n elif y > 2019: \n return "TBD"\n \n if m < 4: \n return "Heisei"\n elif m > 4: \n return "TBD"\n \n if d > 30: \n return "TBD"\n return "Heisei"\n\nprint(solve())']
['Runtime Error', 'Accepted']
['s860320849', 's500352426']
[3188.0, 2940.0]
[19.0, 17.0]
[998, 262]
p03109
u823885866
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\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.buffer.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.buffer.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\ns = rr()\nif s[5:5+2] > '04':\n print('Heisei')\nelse:\n print('TBD')\n\n\n\n\n\n\n\n\n\n\n\n\n", "import sys\n\nrr = lambda: sys.stdin.readline().rstrip()\n\ns = rr()\nif s[5:7] > '04':\n print('TBD')\nelse:\n print('Heisei')\n"]
['Wrong Answer', 'Accepted']
['s621402857', 's061438860']
[27196.0, 8956.0]
[114.0, 27.0]
[466, 122]
p03109
u827241372
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.
['def main() -> None:\n S = input()\n Y, M, D = S.split("/")\n if int(Y) >= 2019 and int(M) <= 4:\n print("HEISEI")\n else:\n print("TBD")\n\n\n\nif __name__ == \'__main__\':\n main()\n', 'def main() -> None:\n S = input()\n Y, M, D = S.split("/")\n if int(Y) >= 2019 and int(M) <= 4:\n print("Heisei")\n else:\n print("TBD")\n\n\n\nif __name__ == \'__main__\':\n main()\n']
['Wrong Answer', 'Accepted']
['s003057115', 's289391284']
[2940.0, 2940.0]
[18.0, 17.0]
[198, 198]
p03109
u827261928
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()\nl=S.split('/')\nif l[0]<=2019:\n if l[1]<=4:\n if l[2]<=30:\n print('Heisei')\n exit()\n print('TBD')", "S=input()\nl=S.split('/')\nif int(l[0])<=2019:\n if int(l[1])<=4:\n if int(l[2])<=30:\n print('Heisei')\n exit()\n print('TBD')"]
['Runtime Error', 'Accepted']
['s801311783', 's931804853']
[8820.0, 9140.0]
[25.0, 23.0]
[140, 155]