TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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.

Submission attempts (in order):
A, B, C = map(int, input().split(' '))
ymd = tuple(map(int, input().split('/')))

if ymd <= (2019, 4, 30):
    print('Heisei')
else:
    print('TBD')


ymd = tuple(map(int, input().split('/')))

if ymd <= (2019, 4, 30):
    print('Heisei')
else:
    print('TBD')


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
print(['TBD','Heisei'][int(input()[5:7])>4])

print(['Heisei','TBD'][int(input()[5:7])>4])

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
print("Heisei" if s<"2019/04/30" else "TBD")

y,m,d = int(input().split("/"))
print("Heisei" if y<=2019 and m<=4 and d<=30 else "TBD")

s = input()
print("Heisei" if s<="2019/04/30" else "TBD")

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = "2019/04/30"
y=int(S[0:4]+S[5:7]+S[8:10])

if y >= 20190430:
    print("TBD")
else:
    print("Heisei")

S = input()
y=int(S[0:4]+S[5:7]+S[8:10])

if y > 20190430:
    print("TBD")
else:
    print("Heisei")



Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a = int("".join(input().split("/"))))
if a <= 20190430:
  print("Heisei")
else:
  print("TBD")

a = int("".join(input().split("/")))
if a <= 20190430:
  print("Heisei")
else:
  print("TBD")


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
# -*- coding: utf-8 -*-
import datetime
# input
S = datetime.datetime.strptime(input(), '%Y/%m/%d')
A = datetime.datetime(2019, 5, 1)
if (S - A).days < 0:
    print('Hisei')
else:
    print('TBD')


# -*- coding: utf-8 -*-
# input
S = input()
if S <= '2019/04/30':
    print('Hisei')
else:
    print('TBD')


# -*- coding: utf-8 -*-
# input
S = input()
if S[-5:-3] <= '04':
    print('Heisei')
else:
    print('TBD')


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
print("TBD" if S[6]>=5 or S[5]>=1 else "Heisei")

S = input()
print("TBD" if S[6]>="5" or S[5]>="1" else "Heisei")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import sys
input_lines = sys.stdin.readline()
y,m,d = input_lines.split("/")

if(m>4):
    print(Heisei)
else:
    print(TBD)

import sys
input_lines = sys.stdin.readline()
y,m,d = input_lines.split("/")



if(int(m)>4):
    print("Heisei")
else:
    print("TBD")

import sys
input_lines = sys.stdin.readline()
y,m,d = input_lines.split("/")


if(int(m)<=4):
    print("Heisei")
else:
    print("TBD")

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import re

date_s = input()

date_l = date_s.replace("/", "")

if(date_l <= 20190430):
  print "Heisei"
else:
  print "TBD"
    


import re

date_s = input()

date_l = re.replace("/", "")

if(date_l <= 20190430):
  print "Heisei"
else:
  print "TBD"
    

import re

date_s = input()

date_l = int(date_s.replace("/", ""))

if(date_l <= 20190430):
  print("Heisei")
else:
  print("TBD")
    


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
foo = s.split('/')
if foo[1] <= 4 and foo[2] <= 30:
  print('Heisei')
else:
  print('TBD')

s = input()
foo = s.split('/')
if int(foo[1]) <= 4 and int(foo[2]) <= 30:
  print('Heisei')
else:
  print('TBD')


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
#coding:utf-8

a = list(map(int,input().split("/")))   

if a[0]==2019 and a[1]>=4:
  print("TBD")
elif a[0]<2019:
  print("TBD")
else:
  print("Heisei")

#coding:utf-8

a = list(map(int,input().split("/")))   

if a[0]==2019 and a[1]>=4:
  print("TBD")
elif a[0]>2019:
  print("TBD")
else:
  print("Heisei")

#coding:utf-8

a = list(map(int,input().split("/")))   

if a[0]=2019 and a[1]>=4:
  print("TBD")
elif a[0]<2019:
  print("TBD")
else:
  print("Heisei")

#coding:utf-8

a = list(map(int,input().split("/")))   

if a[0]==2019 and a[1]>4:
  print("TBD")
elif a[0]>2019:
  print("TBD")
else:
  print("Heisei")

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
b=input()
print("TBD" if int(b[:4])>=2019 or int(b[5:7])>=5else"Heisei")

b=input()
print("TBD" if int(b[:4])>2019 or (int(b[:4])==2019 and int(b[5:7])>=5)else"Heisei")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
y,m,d = map(int,input().split('/'))

if y < 2019:
	print("Heisei")
elif y > 2019:
	print("TBD")
elif m < 4:
	print("Heisei")
elif m >= 5:
	print("TBD")

y,m,d = map(int,input().split('/'))

if y < 2019:
	print("Heisei")
elif y > 2019:
	print("TBD")
elif m < 3:
	print("Heisei")
elif m >= 4:
	print("TBD")


y,m,d = map(int,input().split('/'))

if y < 2019:
	print("Heisei")
elif y > 2019:
	print("TBD")
elif m <= 4:
	print("Heisei")
elif m >= 5:
	print("TBD")


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
if s <= 2019/04/30:
  print("Heisei")
else:
  print("TBD")

s = input()
if s <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s=str(input())
if int(s[0:4])*10000+int(str[5:7])*100+int(str[8:10])>20190430:
  print('TBD')
else:
  print('Heisei')

s=str(input())
if int(s[0:4])*10000+int(s[5:7])*100+int(s[8:10])>20190430:
  print('TBD')
else:
  print('Heisei')

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = input()

y = int(S[0:4])
m = int(S[5:7])
d = int(S[8:10])

print(y, m, d)

if y >= 2019 and m >= 5:
    print('TBD')
else:
    print('Heisei')

S = input()

y = int(S[0:4])
m = int(S[5:7])
d = int(S[8:10])


if y >= 2019 and m >= 5:
    print('TBD')
else:
    print('Heisei')

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import os
import sys
import datetime

def main():
    sDate = datetime.datetime.strptime("2019/04/30", '%Y/%m/%d')
    args = sys.argv
    argdate = ""

    if len(args) == 1:
        print("Error: invalid arguments.")
        return 2

    datestr = args[1]

    try:
        argdate = datetime.datetime.strptime(datestr, '%Y/%m/%d')
    except:
        print("Error: illegal date format.")
        return 1

    if argdate <= sDate:
        print("Heisei")
    else:
        print("TBD")

    return 0

if __name__ == '__main__':
    sys.exit(main())

import os
import sys
import datetime

def main():
    sDate = datetime.datetime.strptime("2019/04/30", '%Y/%m/%d')

    inputdate = input()

    try:
        inputdate = datetime.datetime.strptime(inputdate, '%Y/%m/%d')
    except:
        print("Error: illegal date format.")
        return 1

    if inputdate <= sDate:
        print("Heisei")
    else:
        print("TBD")

    return 0

if __name__ == '__main__':
    sys.exit(main())

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
    yy,dd,mm =map(int,input().split('/'))
    x = 0
    if(yy<=2019):
      if(mm<=4):
        if(dd<=30):
         x = 1
     
    if(x == 1):
      print('Heisei')
    else:
      print('TBD')
        
      

    yy,mm,dd =map(int,input().split('/'))
    x = 0
    if(yy<=2019):
      if(mm<=4):
        if(dd<=30):
         x = 1
     
    if(x == 1):
      print('Heisei')
    else:
      print('TBD')

yy,dd,mm = int(input().split('/'))
x = 0
if(yy<=2019):
  if(mm<=4):
    if(dd<=30):
     x = 1

if(x == 1):
  print('Heisei')
else:
  print('TBD')
    
  

yy,mm,dd =map(int,input().split('/'))
x = 0
if(yy<=2019):
  if(mm<=4):
    if(dd<=30):
      x = 1
         
if(x == 1):
  print('Heisei')
else:
  print('TBD')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
A = input()

if int(A[6:8]) >= 5:
  print('TBD')
else:
  print('Heisei')

A = input()

if int(A[5:7]) >= 5:
  print('TBD')
else:
  print('Heisei')


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s=str(input())
s=list(s)
print(s)
if s[5]=="0" and (s[6]=="1" or s[6]=="2" or s[6]=="3" or s[6]=="4"):
  print("Heisei")
else:
  print("TBD")

s=str(input())
s=list(s)
if s[5]=="0" and (s[6]=="1" or s[6]=="2" or s[6]=="3" or s[6]=="4"):
  print("Heisei")
else:
  print("TBD")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
y,m,d = list(input().split("/"))
s = y+m+d

if s <= 20190430:
    print("Heisei")
else:
    print("TBD")

y,m,d = list(input().split("/"))
s = int(y+m+d)

if s <= 20190430:
    print("Heisei")
else:
    print("TBD")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a=int(input())
b=0
for i in range(a):
  c=input().split()
  if c[1]=='BTC':
    b+=(float)c[0]*380000.0
  else:
    b+=(float)c[0]
print(b)
    
    
  
  


a=int(input())
b=0
for i in range(a):
  c=input().split()
  if c[1]=='BTC':
    b+=(float)c[0]*380000.0
  else:
    b+=(int)c[0]
print(b)
    
    
  
  


a=input().split('/')
if int(a[1]<=4):
  print("Heisei")
else:
  print("TBD")
  
  

a=int(input())
b=0
for i in range(a):
  c=input().split()
  if c[1]='BTC':
    b+=(float)c[0]*380000.0
  else:
    b+=(int)c[0]
print(b)
    
    
  
  


a=input().split('/')
if int(a[1])<=4:
  print("Heisei")
else:
  print("TBD")
  
  


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import datetime

d0 = datetime.date(2019, 4, 30)
d = datetime.date(map(int, *input().split('/')))

if d <= d0:
  print('Heisei')
else:
  print('TBD')

import datetime
 
d0 = datetime.date(2019, 4, 30)
d = datetime.date(*map(int, input().split('/')))
 
if d <= d0:
  print('Heisei')
else:
  print('TBD')

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a,b,c=map(int,input().split("/"))
if a<2019 or a==2019 and b<=4:
  print("Heiasei")
else:
  print("TBD")

a,b,c=map(int,input().split("/"))
if a<2019 or a==2019 and b<=4:
  print("Heisei")
else:
  print("TBD")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
# coding: utf-8

import sys

def _main():
    # args = sys.argv[1:]
    # args = [int(arg) for arg in args]
    datelist = sys.argv[1].split('/')
    year, month, day = [int(i) for i in datelist]

    if year< 2019:
        print('Heisei')
    elif year == 2019:
        if month<4:
            print('Heisei')
        elif month == 4:
            if day <= 30:
                print('Heisei')
            else:
                print('TBD')
        else:
            print('TBD')
    else:
        print('TBD')

if __name__ == '__main__':
    _main()

# coding: utf-8

import sys

def _main():
    # args = sys.argv[1:]
    # args = [int(arg) for arg in args]
    text = input()
    datelist = text.split('/')
    year, month, day = [int(i) for i in datelist]

    if year< 2019:
        print('Heisei')
    elif year == 2019:
        if month<4:
            print('Heisei')
        elif month == 4:
            if day <= 30:
                print('Heisei')
            else:
                print('TBD')
        else:
            print('TBD')
    else:
        print('TBD')

if __name__ == '__main__':
    _main()

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s = input()

splited = s.split("/")

if int(splited[0]) > 2019:
    print("TBD")
elif int(splited[1]) > 4:
    print("TBD")
elif int(splited[2]) >= 30:
    print("TBD")
else:
    print("Heisei")


s = input()

splited = s.split("/")

if int(splited[0]) > 2019:
    print("TBD")
elif int(splited[1]) > 4:
    print("TBD")
elif int(splited[2]) > 30:
    print("TBD")
else:
    print("Heisei")


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input()

d = str(s).split('/')
if int(d[2]) >= 5:
  print("TBD")
else:
  print("Heisei")

s = input()
 
d = str(s).split('/')
if int(d[1]) >= 5:
  print("TBD")
else:
  print("Heisei")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
S = input()

month = S[5:7]
day = S[8:10]


answer = 'Heisei'



if int(month)>4:
    answer = 'TBD'



print(int(S))

S = input()

month = S[5:7]

# print(int(month))
answer = 'Heisei'



if int(month)>4:
    answer = 'TBD'



print(answer)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s = input()

if s[5] == 0:
    if s[6] > 4:
        print("TBD")
    else:
        print("Heisei")
        
print("TBD")


s = input()

if int(s[5]) == 1:
    print("TBD")
    exit()

if int(s[6]) > 4:
    print("TBD")
else:
    print("Heisei")


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a = input()
b =a[0]+a[1]+a[2]+a[3]+a[5]+a[6]+a[8]+a[9]
c =int(a)
if c <= 20190430:
  print('Heisei')
else:
  print('TBD')

S = input()
if S <= '2019/04/30':
    print('Heisei')
else:
    print('TBD')


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
year, month = int(s[0:4]), int(s[5:7])
print(year, month)

if year > 2019 or (year == 2019 and month > 4):
	print("TBD")
else:
	print("Heisei")

s = input()
year, month = int(s[0:4]), int(s[5:7])
#print(year, month)

if year > 2019 or (year == 2019 and month > 4):
	print("TBD")
else:
	print("Heisei")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    cin >> s;
    if(s > "2019/04/30"){
        cout << "TBD" << "\n";
    }
    else{
        cout << "Heisei" << "\n";
    }
}


s = input()
s = s.split('/')

for i in range(len(s)):
	s[i] = int(s[i])

if s[0] >= 2019:
	if s[1] >= 5:
		print('TBD')
		exit()
	else:
		print('Heisei')
		exit()
else:
	print('Heisei')
	exit()

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
_,b,_=input().split('/')
print("Heisei"if b<5 else"TBD")

_,b,_=input().split('/')
print("Heisei"if int(b)<5 else"TBD")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
month = int(S[5]+S[6])
if month >= 4:
	print("TBD")
else:
	print("Heisei")

S = input()
month = int(S[6])
if month >= 4:
	print("TBD")
else:
	print("Heisei")

S = input()
month = int(S[5]+S[6])
if month >= 5:
	print("TBD")
else:
	print("Heisei")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a = input().split("/")
print(a)
if a[1] <= 4:
    print('Heisei')
else:
    print('TBD')


a = input().split("/")
if a[1] <= 4:
    print('Heisei')
else:
    print('TBD')


a = int(input().split("/"))
if a[1] <= 4:
    print('Heisei')
else:
    print('TBD')


S = input().split("/")
if int(S[1]) < 5:
    print("Heisei")
else:
    print("TBD")
    


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
#coding:utf-8

S = str(input())
if S < '2019/04/30':
	print('Heisei')

else:
	print('TBD')



#coding:utf-8

import sys
S = sys.stdin.readline().rstrip('\n')
if S <= '2019/04/30':
	print('Heisei')
else:
	print('TBD')



Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s=input()

if s<="2019/04/30":
  print("HEISEI")
else:
  print("TBD")

s=input()

if s<="2019/04/30":
  print("Heisei")
else:
  print("TBD")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
S = input().split("/")
md = int(S[1] + S[2])
if md > 430:
  print("TBD")
else:
  print("heisei")


S = input().split("/")
md = int(S[0] +S[1] + S[2])
if md > 20190430:
  print("TBD")
else:
  print("Heisei")


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input()

year = s[:4]
mo = s[5:7]
da = s[8:]

if year < 2019:
  ans = "Heisei"
elif year == 2019 and mo<= 4:
  ans ='Heisei'
else:
  ans = 'TBD'
print(ans)

s = input()

year = int(s[:4])
mo = int(s[5:7])

if year < 2019:
  ans = "Heisei"
elif year == 2019 and mo<= 4:
  ans ='Heisei'
else:
  ans = 'TBD'
print(ans)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S=input().split("/")
if int(S[0])>=2019 and int(S[1])>=5:
    print("TBD")
else:
    print("heisei")

S=input().split("/")
if int(S[0])>=2019 and int(S[1])>=5:
  print("TBD")
else:
  print("Heisei")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = str(input())
year = ''
month = ''
day = ''

for i in range(4):
    y = s[i]
    year += y
for i in range(5, 7):
    m = s[i]
    month += m
for i in range(9, 11):
    d = s[i]
    day += d

year = int(year)
month = int(month)
day = int(day)

if year < 2019:
    answer = 'Heisei'

elif year == 2019 and month <= 4:
    answer = 'Heisei'

else:
    answer = 'TBD'
    
print(answer)

s = str(input())

year = ''
for i in range(4):
    y = s[i]
    flag1 = True
    if y == '0':
        if len(year) == 0:
            flag1 = False
        if flag1:
            year += y
    else:
        year += y
year = int(year)

month = ''
for i in range(5, 7):
    m = s[i]
    if i == 5 and m == '0':
        continue
    else:
        month += m
month = int(month)


if year < 2019:
    answer = 'Heisei'

elif year == 2019 and month <= 4:
    answer = 'Heisei'

else:
    answer = 'TBD'

print(answer)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
print(s[5:7])
if s[3] == "9":
  if s[5] == 1:
    print("TBD")
  else:
    if int(s[6]) > 4:
      print("Heisei")
else:
  print("Heisei")

s = input()
if s[3] == "9":
  if s[5] == 1:
    print("TBD")
  else:
    if int(s[6]) == 1:
      print("TBD")
    else:
      if int(s[7]) > 4:
        print("TBD")
      else:
        print("Heisei")
    
else:
  print("Heisei")

s = input()
if s[3] == "9":
  if s[5] == 1:
    print("TBD")
  else:
    if int(s[5]) == 1:
      print("TBD")
    else:
      if int(s[6]) > 4:
        print("TBD")
      else:
        print("Heisei")
    
else:
  print("Heisei")

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s = str(input())
t = int(s[0:4]+s[5:7]+s[8:10])
if t > 2019430:
  print("TBD")
else:
  print("Heisei")


s = str(input())
t = int(s[0:4]+s[5:7]+s[8:10])
if t > 20190430:
  print("TBD")
else:
  print("Heisei")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
before = ("Heisei")
after = ("TBD")
if s[7] == 1 or s[7] == 2 or s[7] == 3 or s[7] == 4:
    print(before)
else:
    print(after)

s = input()
before("Heisei")
after("TBD")
if s[7] == 1 or s[7] == 2 or s[7] == 3 or s[7] == 4:
    print(before)
else:
    print(after)

s = input()
before = ("Heisei")
after = ("TBD")
if s[6] == "1" and s[5] == "0":
    print(before)
elif s[6] == "2" and s[5] == "0":
    print(before)
elif s[6] == "3":
    print(before)
elif s[6] == "4":
    print(before)
else:
    print(after)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s=input()s=input()

if int(s[1])>4:
  print('TBD')
elif int(s[0])==1:
  print('TBD')
else:
  print('Heisei')
  
  

s=input()

if int(s[6])>4:
  print('TBD')
elif int(s[5])==1:
  print('TBD')
else:
  print('Heisei')
  
  

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a = input()
b = a.split("/")
c = [int(n) for n in b]
if c[0] > 2018:
    print("PBD")
elif c[0] < 2018:
    print("Heisei")
else:
    if c[1] >=5:
        print("PBD")
    else:
        print("Heisei")

a = input()
b = a.split("/")
c = [int(n) for n in b]

if c[0] > 2019:
    print("TBD")
elif c[0] < 2019:
    print("Heisei")
else:
    if c[1] >=5:
        print("TBD")
    else:
        print("Heisei")

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import pandas as pd
date = pd.to_datetime(input().rstrip())
if date > pd.to_datetime("2019/4/30"):
  print("TBD)
else:
  print("Heisei")

y,m,d = [int(s) for s in input().rstrip().split("/")]

if y == 2019:
  if m >= 5:
    print("TBD")
    exit()
elif y > 2019:
  print("TBD")
  exit()

print("Heisei")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
from datetime import datetime
input_date = datetime.datetime.strptime(input(), "%Y%m%d")

heisei = datetime.datetime(2019,4,30)
if input_date < heisei:
    print('Heisei')
else:
    print('TBD')





import datetime
s=input()

input_date = datetime.datetime.strptime(s, "%Y/%m/%d")
heisei = datetime.datetime(2019,4,30)

if input_date < heisei:
    print('Heisei')
else:
    print('TBD')





from datetime import datetime
input_date = datetime.datetime(input(), "%Y%m%d")

heisei = datetime.datetime(2019,4,30)
if input_date < heisei:
    print('Heisei')
else:
    print('TBD')

import datetime
s=input()

input_date = datetime.datetime.strptime(s, "%Y/%m/%d")
heisei = datetime.datetime(2019,4,30)

if input_date <= heisei:
    print('Heisei')
else:
    print('TBD')





Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = map(int, input().replace("/", ""))
print("Heisei" if S <= S else "TBD")

S = input().replace("/", "")
print("Heisei" if S <= 20190430 else "TBD")

S = int(input().replace("/", ""))
if S <= 20190430:
    print("Heisei")
else:
    print("TBD")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
 print('Heisei' if S <= '2019/04/30' else 'TBD')

S = input()
2 print('Heisei' if S <= '2019/04/30' else 'TBD')

S = input()
print('Heisei' if S <= '2019/04/30' else 'TBD')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import sys

y, m, d = map(int, sys.stdin.readline().split("/"))
if (y == 2019 and m <= 4) or y < 2019:
    print('heisei')
else:
    print('TBD')


import sys

y, m, d = map(int, sys.stdin.readline().split("/"))
if (y == 2019 and m <= 4) or y < 2019:
    print('Heisei')
else:
    print('TBD')


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a,b,c=map(int,input().split("/"))
if a>=2019 and b>=5:
  print("TBD")
else:
  print("heisei")

a,b,c=map(int,input().split("/"))
if b>=5:
  print("TBD")
else:
  print("heisei")

a,b,c=map(int,input().split("/"))
if b>=5:
  print("TBD")
else:
  print("Heisei")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
if s > "2019/04/30":
    print("Heisei")
else:
    print("TBD")

s = input()
if s < "2019/04/30":
    print("Heisei")
else:
    print("TBD")

s = input()
if s <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import datetime
base_date = datetime.datetime.strptime('2019/04/30', "%Y/%m/%d")

S = input()

S_date = datetime.datetime.strptime(S, "%Y/%m/%d")

if S_date <= base_date:
    print('HEISEI')
else :
    print('TBD')

import datetime
base_date = datetime.datetime.strptime('2019/04/30', "%Y/%m/%d")

S = input()

S_date = datetime.datetime.strptime(S, "%Y/%m/%d")

if S_date <= base_date:
    print('Heisei')
else :
    print('TBD')

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
s = input()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[8:10])
if y > 2019:
    print("TBD")
elif y=2019 and	m>4:
    print("TBD")
else:
    print("Heisei")

s = input()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[8:10])
if y > 2019:
    print("TBD")
elif y==2019 and	m>4:
    print("TBD")
else:
    print("Heisei")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
x, y, z=list(map(int, input().split(/)))
if y>=5:
  print("TBD")
else:
  print("Heisei")

x, y, z=list(map(int, input().split("/")))
if y>=5:
  print("TBD")
else:
  print("Heisei")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
if S[5] == 0 and int(S[6]) <= int('5'):
    print('Heisei')
else:
    print('TBD')

S = input()
if S[5] == 0 and int(S[6]) <= int('5'):
    print('Heisei')
else:
    print('TBD')

S = input()
if S[5] == '0' and int(S[6]) < int('5'):
    print('Heisei')
else:
    print('TBD')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
a=int(input().replace("/",""))
if a - 20190430 > 0:
    print("Heisei")
else:
    print("TBD")



a=int(input().replace("/",""))
if a - 20190430 > 0:
    print("TBD")
else:
    print("Heisei")



Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
s = S[4:6] + S[7:9]
s = int(s)

if s < 501:
  print('Heisei')
else:
  print('TBD')

S = input()
s = S[5:7] + S[8:10]
s = int(s)

if s < 501:
  print('Heisei')
else:
  print('TBD')


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
a = int(input())
if a <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

a = input()
if a <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
n=int(input())
sum=0
for j in range(n):
  i,c=input().split()
  if c=="BTC":
    sum+=float(i)*380000
  else:
    sum+=int(i)
print(sum)

s=input()
if s<="2019/04/30":
  print("Heisei")
else:
  print("TBD")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
y, m, d = map(int, S.split("/"))
ans = "Heisei"
if y > 2019:
    ans = "TBD"
elif y == 2019:
    if m > 5:
        ans = "TBD"
    elif m == 4 and d == 30:
        ans = "TBD"
print(ans)


S = input()
y, m, d = map(int, S.split("/"))
ans = "Heisei"
if y > 2019:
    ans = "TBD"
elif y == 2019:
    if m > 4:
        ans = "TBD"
print(ans)


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import numpy as np

s = str(input())

y, m, d = s.split("/")

y, m, d = int(y), int(m), int(d)

if y < 2019:
  print("Heisei")
elif y==2019 and m<4:
  print("Heisei")
elif y==2019 and m=4 and d < 30:
  print("Heisei")
else:
  print("TBD")

import numpy as np

s = str(input())

y, m, d = s.split("/")

y, m, d = int(y), int(m), int(d)

if y < 2019:
  print("Heisei")
elif y==2019 and m<4:
  print("Heisei")
elif y==2019 and m==4 and d < 30:
  print("Heisei")
else:
  print("TBD")

import numpy as np

s = str(input())

y, m, d = s.split("/")

print(y, m, d)

import numpy as np

s = str(input())
y, m, d = s.split("/")

y, m, d = int(y), int(m), int(d)

if y < 2019:
  print("Heisei")
elif y==2019 and m<4:
  print("Heisei")
elif y==2019 and m==4 and d <= 30:
  print("Heisei")
else:
  print("TBD")


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
print('Heisei' if S <= '2019/04/30' else 'TBD)

S = input()
print('Heisei' if S <= '2019/04/30' else 'TBD')

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S=input()
if S<=2019/4/30:
  print(Heisei)
else:
  print(TBD)

S=input()
if S<='2019/04/30':
  print('Heisei')
else:
  print('TBD')


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
S = input()
if S =< 2019/04/30:
  print("Heisei")
else:
  print("TBD")

if S >= 2019/04/30:
  print("Heisei")
  
else:
  print("TBD")

S = input()

if S <= "2019/04/30":
    print("Heisei")
else:
    print("TBD")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
Y, M, D = map(int, input().split(/))
boo = False
if Y < 2019:
  boo = True
else:
  if Y == 2019 and M <= 4:
    boo = True
if boo:
  print("Heisei")
else:
  print("TBD")

Y, M, D = map(int, input().split("/"))
boo = False
if Y < 2019:
  boo = True
else:
  if Y == 2019 and M <= 4:
    boo = True
if boo:
  print("Heisei")
else:
  print("TBD")

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
s = list(map(int, input().split('/')))

print(s)
if s[1] >= 5:
    print('TBD')
elif s[1] <= 4:
    print('Heisei')

s = list(map(int, input().split('/')))

if s[1] > 5:
    print('TBD')
elif s[i] <= 4:
    print('Heisei')

s = list(map(int, input().split('/')))

if s[1] >= 5:
    print('TBD')
elif s[1] <= 4:
    print('Heisei')

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
# -*- coding: <encoding name> -*-

s = input()
print('Heisei' if s < '2019/04/30' else 'TBD')

# -*- coding: <encoding name> -*-

s = input()
print('Heisei' if s <= '2019/04/30' else 'TBD')

Verdicts: Wrong Answer

Accepted