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):
s=input()
l=list(map(int,s.split("/")))
if l[0] <=2018 or l[0] ==2019 and (l[1]<=3 or l[1] ==4 and l[2]<=30):
    print('TBD')
else:
    print("Heisei")

s=input()
l=list(map(int,s.split("/")))
if l[0] <=2018 or l[0] ==2019 and (l[1]<=3 or l[1] ==4 and l[2]<=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):
def still_tdb(s):

    return "Heisei" if s < "2019/04/30" else "TBD"
def main():
    s = str(input())
    print(still_tdb(s))

if __name__ == '__main__':
    main()

def still_tdb(s):

    return "Heisei" if s <= "2019/04/30" else "TBD"
def main():
    s = str(input())
    print(still_tdb(s))

if __name__ == '__main__':
    main()

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("TBD")
else
  print("Heisei")

s=input()
if s > "2019/04/30":
  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):
print "Hello"

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().split('/')
date = ''
for i in s:
    date += i
print(date)
print('Heisei') if int(date) <=20190430 else print('TBD')

s = input().split('/')
date = ''
for i in s:
    date += i
print(date)
print('Heisei') if int(date) <=20190430 else print('TBD')

s = input().split('/')
date = ''
for i in s:
    date += i
print('Heisei') if int(date) <=20190430 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):
from datetime import datetime

S = input()
date = datetime.strptime(S, "%Y/%m/%d")
if date > datetime(2019, 4, 30):
  print("TDB")
else:
  print("HEISEI")

from datetime import datetime

S = input()
date = datetime.strptime(S, "%Y/%m/%d")
if date > datetime(2019, 4, 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()
y,m,d = map(int,S.split('/'))
ans = 'TBD'
if y > 2018 and m > 3 and d > 30:
    ans = 'Heisei'
elif y > 2019:
    ans = 'Heisei'

print(ans)

S = input()
y,m,d = map(int,S.split('/'))
ans = 'TBD'
if y <= 2019 and m <= 4 and d <= 30 or y < 2018:
    ans = 'Heisei'
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):
a = list(map(int,input().split(/)))
if a[1] > 4:
  print("TBD")
else:
  print("Heisei")


a = list(map(int,input().split("/")))
if a[1] > 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):
S = input().split("/")
 
if int(S[5]) < 5 and int(S[4]) == 0 :
	print('Heisei')
else :
	print('TBD')

S = input().split("/")

if int(S[5]) < 5 :
	print('Heisei')
else :
	print('TBD')

S = datetime(input())

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


S = input().sprint("/")

if int(S[5]) < 5 :
	print('Heisei')
else :
	print('TBD')

S = input().split("/")

if S[5] < 5 :
	print('Heisei')
else :
	print('TBD')

S = input().split("/")

if int(S[5]) < 5 :
	print('Heisei')
else :
	print('TBD')

S = input().split("/")

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

S = int(input().split("/"))

if S[5] < 5 :
	print('Heisei')
else :
	print('TBD')

S = input().split("/")

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

import datetime

S = input().datetime

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



S = input().split("/")
 
if int(S[5]) < 5 and int(s[4]) ==0 :
	print('Heisei')
else :
	print('TBD')

s = input()

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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):
s = list(input())
k = [s[0], s[1], s[2], s[3]]
l = [s[5], s[6]]
a = ''.join(int(_) for _ in k)
b = ''.join(int(_) for _ in l)

if a > 2019:
    print('TBD')

elif a == 2018 and b > 4:
    print('TBD')

else:
    print('Heisei')

s = list(input(s))
k = [s[0], s[1], s[2], s[3]]
l = [s[5], s[6]]
a = int(''.join(k))
b = int(''.join(l))

if a > 2019:
    print('TBD')

elif a == 2018 and b > 4:
    print('TBD')

else:
    print('Heisei')

s = input()
s1 = [s[0], s[1], s[2], s[3]]
s2 = [s[5], s[6]]

t1 = int(''.join(s1))
t2 = int(''.join(s2))

if t1 > 2019:
    print('TBD')

elif t1 == 2019 and t2 > 4:
    print('TBD')

else:
    print('Heisei')


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):
a='2020/03/30'
d=a.split(sep='/')
if(int(d[0])<2019):
        print("Heisei")
elif(int(d[0])==2019 and int(d[1])<4):
        print("Heisei")
elif(int(d[0])==2019 and int(d[1])==4 and int(d[2])<=30):
        print("Heisei")
else:
        print("TBD")

a=str(input())
d=a.split(sep='/')
if(int(d[0])<2019):
        print("Heisei")
elif(int(d[0])==2019 and int(d[1])<4):
        print("Heisei")
elif(int(d[0])==2019 and int(d[1])==4 and int(d[2])<=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 = [int(input().split('/')) for _ in range(3)]

if s[0] <= 2019 and s[1] <= 4 and s[-1] <= 30:
  print('Heisei')
else:
  print('TBD')

s = [int(i) for i in input().split('/')]

if s[0] <= 2019 and s[1] <= 4 and s[-1] <= 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):
import datetime

S = input().strip()
dt_S = datetime.datetime.strptime(S, '%Y/%m/%d')

LastHeisei = '2019/04/30'
dt_LastHeisei = datetime.datetime.strptime(LastHeisei, '%Y/%m/%d')

if dt_S > dt_LastHeisei:
  print ("TBD")
else:
  print ("heisei")

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()
S = S.replace('/', '')

if int(S) - 2019430 > 0:
  print('TBD')
else:
  print('Heisei')



S = input()
S = S.replace('/', '')

if int(S) - 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):
y, m, d = map(int, input().split("/"))
print(y, m, d)
if m >= 5:
    print("TBD")
else:
    print("Heisei")


y, m, d = map(int, input().split("/"))
if 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):
s = str(input())
mon = int(s[5:7])
print (mon)
if mon > 5:
  print('TBD')
else:
  print('Heisei')

s = str(input())
mon = int(s[5:7])
if mon >= 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):
n=input()
if int('n[5]+n[6]') >=5:
  print('TBD'):
else:
  print('Heisei')


n=input()
if int(n[5]+n[6]) >=5:
  print('TBD'):
else:
  print('Heisei')

n=input()
if int(n[5]+n[6]) >=5:
  print('TBD')
else:
  print('Heisei')



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 datetime

slist = input().split("/")

kirikae = datetime.datetime(2019,4,30)
inputlist = datetime.datetime(int(slist[0]),int(slist[1]),int(slist[2]))
print(kirikae)
print(inputlist)
if kirikae < inputlist:
  print("TBD")
else:
  print("Heisei")

import datetime

slist = input().split("/")

kirikae = datetime.datetime(2019,4,30)
inputlist = datetime.datetime(int(slist[0]),int(slist[1]),int(slist[2]))
if kirikae < inputlist:
  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):
N, A, B, C = [int(x) for x in input().split()]
l = []
for i in range(N):
  l.append(int(input()))
 
def dfs(cur, a, b, c):
  if cur == N:
    return abs(a - A) + abs(b - B) + abs(c - C) - 30 if min(a, b, c) > 0 else 1000000
  ret0 = dfs(cur + 1, a, b, c)
  ret1 = dfs(cur + 1, a + l[cur], b, c) + 10
  ret2 = dfs(cur + 1, a, b + l[cur], c) + 10
  ret3 = dfs(cur + 1, a, b, c + l[cur]) + 10
  return min(ret0, ret1, ret2, ret3)
 
print(dfs(0, 0, 0, 0))

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

n = int(y + m + d)

if n <= 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):
date = map(int,input().split('/'))
print('TBD' if data[0]>=2019 and data[1]*30+data[2]>=150 else 'Heisei') 

date =list(map(int,input().split('/')))
print('TBD' if date[1]*31+date[2]>=155 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):
S = map(int, input().split("/"))
if S[1] > 4:
  print("TBD")
else:
  print("Heisei")

S = list(map(int, input().split("/")))
if S[1] > 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):
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

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[6:8]
if '0' in s:
  if s == '10':
     s = s
  else:
    s = s.replace('0','')
n = int(s)
if n<=4:
  print('Heisei')
else:
  print('TBD')
  
  

S=input()
u=S[7:8]
U=int(u)
if U<=4:
    print('Heisei')
else:
    print('TBD')


S=input()
u=s[6:8]
U=int(u)
if U<=4:
    print('Heisei')
else:
    print('TBD')


S=input()
s=S[6:8]
if '0' in s:
  if s == '10':
     s = s
  else:
     s = s.strip('0')
n = int(s)
if n<=4:
  print('Heisei')
else:
  print('TBD')
  
  


S=input()
u=S[6:8]
U=int(u)
if U<=4:
    print('Heisei')
else:
    print('TBD')


y,m,d = map(int,input().split("/"))
if m<=4:
  print('Heisei')
else:
  print('TBD')

Verdicts: Runtime Error

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):
S=input()
M=S[5]*10+S[6]
if M>4:
	print("TBD")
else:
	print("Heisei")

S=input()

M=int(S[5])*10+int(S[6])
if 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):
S = str(input())
from datetime import datetime as dt
dtime = dt.strptime(S, '%Y/%m/%d')
target = dt(2019, 4, 30, 0, 0)
if dtime <= target:
    print("heisei")
else:
    print("TBD")

S = str(input())
print('Heisei' if S <= "2019/04/30" else "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):
import sys
import datetime

lines = sys.stdin.readlines()
X = lines[0]

d = datetime.datetime.strptime(X, '%Y/%m/%d')

if d > datetime.datetime(2019,4,30):
  print('TBD')
else:
  print('Heisei')


import sys
import datetime

lines = sys.stdin.readlines()
X = lines[0]

d = datetime.datetime.strptime(X, '%Y/%m/%d')

if d > datetime.datetime(2019,4,30):
  print('TBD')
else:
  print('Heisei')



import sys

lines = sys.stdin.readlines()
S = lines[0]

Ss = S.split('/')

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



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()
YMD=int(''.join(S.split('/')))
if YMD > 20190430:
  print('heisei')
else:
  print('TBD')

S=input()
YMD=int(''.join(S.split('/')))
if YMD > 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()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[8:])

if y > 2019:
    print("TBD")
elif y == 2019 and m > 4:
    print("TBD")
else:
    print("HEISEI")

s = input()
m = int(s[5:7])

if m > 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):
import sys
from datetime import datetime

def main():
    line = sys.stdin.readline().strip()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("HEISEI")
    else:
        print("TBD")
if __name__ == "__main__":
    main()

import sys
from datetime import datetime

def main():
    line = sys.stdin.readline()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("HEISEI")
    else:
        print("TBD")

if __name__ == "__main__":
    main()

import sys
from datetime import datetime

def main():
    line = sys.stdin.readline()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("HEISEI")
    else:
        print("TBD")
if __name__ == "__main__":
    main()

import sys
from datetime import datetime

def main():
    line_num = 0
    for line in sys.stdin.readlines():
        today = datetime.strptime(line, "%Y/%m/%d")
        TBD = datetime(2019, 5, 1)
        if today < TBD:
            print("HEISEI")
        else:
            print("TBD")
if __name__ == "__main__":
    main()

import sys
from datetime import datetime

def main():
    line = sys.stdin.readline().strip()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("Heisei")
    else:
        print("TBD")

if __name__ == "__main__":
    main()

Verdicts: Wrong Answer

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
date_str = input()
date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")
last_heisei = datetime.datetime(2019, 4, 30, 0, 0, 0)
if date_formatted < last_heisei:
  print("Heisei")
else:
  print("TBD")

import datetime
date_str = input()
date_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")
last_heisei = datetime.datetime(2019, 4, 30, 0, 0, 0)
if date_formatted <= last_heisei:
  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):
from datetime import datetime as dt
date0 = dt(2019,4,30)
date = input()
tdate =dt.strptime(date, '%Y/%m/%d')
if date0 > tdate:
    print("HEISEI")
else:
    print("TBD")

from datetime import datetime as dt
date0 = dt(2019,4,30)
date = input()
tdate =dt.strptime(date, '%Y/%m/%d')
if date0 > tdate:
    print("Heisei")
else:
    print("TBD")

from datetime import datetime as dt
date0 = dt(2019,4,30)
date = input()
tdate =dt.strptime(date, '%Y/%m/%d')
if date0 >= tdate:
    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):
y,m,d=map(int,input().split('/'))
if y < 2020 and m < 05:
    print('Heisei')
else:
    print('TBD')


y,m,d=map(int,input().split('/'))
if y < 2020 and m < 5:
    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()
m = s[5:7]
if int(m)>=5:
    print('Heisei')
else:
    print('TBD')

s = input()
m = s[5:7]
if int(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):
S = input()
m = S[5:7]
if int(m) <= 4:
  print('HeiSei')
else:
  print('TBD')  

S = input()
m = S[5:7]
if int(m) <= 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):
S = input()
if S[5] == "1":
  print("TBD")
  elif int(S[6]) > 4:
    print("TBD")
  else:
    print("Heisei")


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


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

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


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):
from datetime.datetime import datetime
S=datetime.strptime(S,'%Y/%m/%d')
x=datetime.datetime(2019, 4, 30, 0, 0)
if x>S:
     print('TBD')
else:
     print("Heisei")

from datetime.datetime import datetime
datetime.datetime(2019, 4, 30, 0, 0)
S=datetime.strptime(S,'%Y/%m/%d')
x=datetime.datetime(2019, 4, 30, 0, 0)
if x>S:
     print('TBD')
else:
     print("Heisei")

Y,M,D=map(int,input().split("/"))
if (Y,M,D)>(2019,4,30):
  print("TBD")
else:
   print("Heisei")

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()

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):
date = input()

date = date.replace('/', '')
if date <= 20190430:
    print("Heisei")
else:
    print("TBD")


date = input()

date = int(date.replace('/', ''))
if date <= 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):
s=input()
if int(s[4:5])>4:
    print("TBD")
else:
    print("Heisei")

s=input()
if s[5]=="0":
    if int(s[6])>4:
        print('TBD')
    else:
        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):
from datetime import datetime

tmp = input()
target = datetime(int(tmp[:4]), int(tmp[5:7]), int(tmp[8:10]), 0, 0) 
from_dt = datetime(2019, 4, 30)

if from_dt <= target:
  print("heisei")
else:
  print("TBD")



from datetime import datetime

tmp = input()
target = datetime(int(tmp[:4]), int(tmp[5:7]), int(tmp[8:10]), 0, 0) 
from_dt = datetime(2019, 4, 30)

if from_dt >= target:
  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):
x=str(input())
if int(x[:4])>2019:
  print("Heisei")
elif int(x[:4])>=2019& int(x[5:7])>4:
  print("TBD")
  

x=str(input())
print(x[:4])
print(x[5:7])
if int(x[:4])>2019:
  print("Heisei")
elif int(x[:4])>=2019& int(x[5:7])>4:
  print("TBD")
  

x=str(input())
if int(x[:4])>2019:
	print("Heisei")
elif int(x[:4])>=2019& int(x[5:7])>4:
	print("Heisei")
else:
  	print("TBD")
  

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

Verdicts: Wrong Answer

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 numpy as np
    
INF = float('inf')

n,A,B,C = [int(i) for i in input().split()]

l = [int(input()) for i in range(n)]

def dfs(cur, a, b, c):
    
    if cur == n:
        return abs(a-A) + abs(b-B) + abs(c-C) - 30 if min(a,b,c) > 0 else INF
    
    ret0 = dfs(cur+1, a, b, c)
    ret1 = dfs(cur+1, a+l[cur], b, c) + 10
    ret2 = dfs(cur+1, a, b+l[cur], c) + 10
    ret3 = dfs(cur+1, a, b, c+l[cur]) + 10

    return min(ret0, ret1, ret2, ret3)


print(dfs(0,0,0,0))


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

if (int(s[0]) <= 2019) and (int(s[1]) <= 4) and (int(s[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):
s=int(input())
print("Heisei" if s<"2019/04/30" else "TBD")

s=int(input())
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 numpy as np


def check(x, al, bl):
    rcost = np.inf
    for a in al:
        tmp_c = abs(a - x)
        for b in bl:
            t = abs(b - a)
            rcost = min(rcost, tmp_c + t, abs(b - x) + t)

    print(int(rcost))


n = [int(each) for each in input().split()]
a, b, q = n[0], n[1], n[2]

sl = np.zeros(a)
tl = np.zeros(b)
xl = np.zeros(q)

for i in range(a):
    sl[i] = int(input())
for i in range(b):
    tl[i] = int(input())
for i in range(q):
    xl[i] = int(input())

result = []
for x in xl:
    check(x, sl, tl)


a = input()
a = a.replace('/', '')


if int(a) > 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):
a,b,c=map(int,input.split('/'))
if b>4:
  print('TBD')
else:
  print('Heisei')

a,b,c=map(int,input().split())
if a>2019:
  print('TBD')
elif a<2019:
  print('Heisei')
else:
  if b>4:
    print('TBD')
  elif b<=4:
    print('Heisei')
    

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

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

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):
import sys
from itertools import product

import numpy as np

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    print("Heisei" if ii(str) == "2019/04/30" else "TBD")


if __name__ == "__main__":
    print(solve())


import sys
from itertools import product

import numpy as np

sys.setrecursionlimit(200000)


def input():
    return sys.stdin.readline()[:-1]


def ii(t: type = int):
    return t(input())


def il(t: type = int):
    return list(map(t, input().split()))


def imi(N: int, t: type = int):
    return [ii(t) for _ in range(N)]


def iml(N: int, t: type = int):
    return [il(t) for _ in range(N)]


def solve():
    return "Heisei" if ii(str) <= "2019/04/30" else "TBD"


if __name__ == "__main__":
    print(solve())


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())

s = s.split('/')
if int(s[0]) >= 2019:
    if int(s[1]) >= 5:
        if int(s[2]) >= 1:
            print('TBD')
            exit()

print('heisei')

s = str(input())

s = s.split('/')
if int(s[0]) >= 2019:
    if int(s[1]) >= 5:
        if int(s[2]) >= 1:
            print('TBD')
            exit()

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.replace('/','')
if int(S)>20190430:
    print('TBD')
else:
    print('heisei')

S=input()
S=S.replace('/','')
if int(S)>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()
if int(s[:4]) <= 2019:
  if int(s[5:7]) <= 4:
    if int(s[8:10]) < 30:
      print('Heisei')
    else:
      print('TBD')
  else:
    print('TBD')
else:
  print('TBD')

s = input()
if int(s[:4]) <= 2019:
  if int(s[5:7]) <= 4:
    if int(s[8:10]) < 30:
      print('Heisei')
    else:
      print('TBO')
  else:
    print('TBO')
else:
  print('TBO')

s = input()
if s > '2019/04/30':
  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 int(s[:4]) < 2019:
    print("Heisei")
else:
    if int(s[5:7]) in ["01","02","03","04"]:
        print("Heisei")
    else:
        print("TBD")


s=input()

if int(s[:4]) < 2019:
    print("Heisei")
else:
    if s[5:7] in ["01","02","03","04"]:
        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):
line = input().split("/")

if(int(line[0]) <= 2019):
    if(int(line[1]) <= 5):
        print("Helsei")
        exit()

print("TBD")


line = input().split("/")

if(int(line[0]) >= 2019):
    if(int(line[1]) > 4):
        print("TBD")
        exit()

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):
print('Heisei' if int(input()[5:7])>4 else 'TBD')

print('Heisei' if int(input()[5:7])<5 else '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=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 2019430:
  print("TDB")
else:
  print('Heisei')


a=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 2019430:
  print("TBD")
else:
  print('Heisei')


a=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 2019430:
  print("TBD")
else:
  print('Heisei')


a=input().split('/')
a=a[0]+a[1]+a[2]:
if int(a) > 2019430
  print("TDB")
else:
  print('Heisei')


a=input().split('/')
a=a[0]+a[1]+a[2]
if int(a) > 2019430
  print("TDB")
else
  print('Heisei')

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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=str(input())
slice6=S[6]
slice5=S[5]
if int(slice6) < 5 and slice5 ==0:
  print("Heisei")
  else:
    print("TBD")


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

S=str(input())
slice6=S[6]
slice5=S[5]
if int(slice) < 5 and slice5 ==0:
  print("Heisei")
  else:
    print("TBD")


S=str(input())
slice6=S[6]
slice5=S[5]
if int(slice6) < 5 and slice5 ==0:
  print("Heisei")
else:
  print("TBD")


S=str(input())
slice6=S[6]
slice5=S[5]
if int(slice6) < 5 and int(slice5) ==0:
  print("Heisei")
else:
  print("TBD")


Verdicts: Runtime Error

Runtime Error

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 datetime

s = datetime.datetime.strptime(input(),'%Y/%m/%d')
h = datetime.datetime.strptime('2019/4/30','%Y/%m/%d')

if s <= h:
  print("heisei")
else:
  print("TBD")

import datetime

s = datetime.datetime.strptime(input(),'%Y/%m/%d')
h = datetime.datetime.strptime('2019/4/30','%Y/%m/%d')

if s <= h:
  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 = int(input())
print('Heisei' if S[5]==0 and S[6]<5 else 'TBD')    

S = list(str(input()))
print('Heisei' if int(S[5])==0 and int(S[6])<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 = str(input())
n = int(S[0:4]+S[5:7]+S[8:10])
if n <= 20190430:
    ans = 'heisei'
else:
    ans = 'TBD'
print(ans)

S = str(input())

n = int(S[0:4]+S[5:7]+S[8:10])
if n <= 20190430:
    ans = 'Heisei'
else:
    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):
a = input().split('/')
if a[0] > 2019 and a[1] > 5:
  print('TBD')
  
else:
  print('Heisei')


a = input().split('/')
if a[1][0] == '0':
  a[1] = a[1][1]
if int(a[0]) >= 2019 and int(a[1]) >= 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 = list(input())
year = int(s[:4])
manth = int(s[5:7])
day = int(s[9:])
if year > 2019:
  print('TBD')
elif year < 2019:
  print('Heisei')
else:
  if month > 4:
    print('TBD')
  elif month < 4:
    print('Heisei')
  else:
    if day > 30:
      print('TBD')
    else:
      print('Heisei')

s = input()
year = int(s[:4])
month = int(s[5:7])
day = int(s[9:])
if year > 2019:
  print('TBD')
elif year < 2019:
  print('Heisei')
else:
  if month > 4:
    print('TBD')
  elif month < 4:
    print('Heisei')
  else:
    if day > 30:
      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(S)
T = [c for c in S]
if int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or  (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):
  print('Heisei')
  exit()
print('TBD')  

S = input()
T = [c for c in S]
if int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or  (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):
  print('Heisei')
  exit()
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):
line = list(input().split("/"))
print(line)
if int(line[0]) <= 2019 and int(line[1]) <= 4:
    print("Heisei") 
else:
    print("TBD")   

line = list(input().split("/"))
if int(line[0]) <= 2019 and int(line[1]) <= 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):
S = input()
print("Heisei" if S<=2019/4/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):
import re

s = input()
li = s.splite("/")
month = int(li[1])

if month > 4:
  print('TBD')
else:
  print("Heisei")

import re

s = input()
li = s.splite("/")
month = int(li[1])

if month > 4:
  print('TBD')
else:
  print("Heisei")

return 0

import re

s = input()
li = s.split("/")
month = int(li[1])

if month > 4:
  print('TBD')
else:
  print("Heisei")


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().split("/")
if S[1]==4 and S[2]<=30:
    print("Heisei")
elif S>4:
    print("TBD")
else:
    print("Heisei")


S = input().split("/")
if int(S[1])==4 and int(S[2])<=30:
    print("Heisei")
elif int(S[1])>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):
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