Problem:


Score : 100 points

Problem Statement

You are given a string S as input. This represents a valid date in the year 2019 in the yyyy/mm/dd format. (For example, April 30, 2019 is represented as 2019/04/30.)

Write a program that prints Heisei if the date represented by S is not later than April 30, 2019, and prints TBD otherwise.

Constraints

S is a string that represents a valid date in the year 2019 in the yyyy/mm/dd format.

Input

Input is given from Standard Input in the following format:

S

Output

Print Heisei if the date represented by S is not later than April 30, 2019, and print TBD otherwise.

Sample Input 1

2019/04/30

Sample Output 1

Heisei

Sample Input 2

2019/11/01

Sample Output 2

TBD



Sample input:
2019/04/30


Sample output:
Heisei

Submission status: Accepted

Solution code:
def main():
    S = input()
    y, m, d = list(map(int, S.split('/')))
    if y < 2019:
        print('Heisei')
        return 0
    elif y == 2019:
        if m <= 4:
            print('Heisei')
        else:
            print('TBD')
    else:
        print('TBD')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
"""AtCoder"""

S = input()

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

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

Submission status: Accepted

Solution code:
D_str=input().split("/")
D=list(map(int,D_str))
if D[0]>=2020:
  print("TBD")
elif D[0]==2019 and D_str[1]=="01":
  print("Heisei")
elif D[0]==2019 and D_str[1]=="02":
  print("Heisei")
elif D[0]==2019 and D_str[1]=="03":
  print("Heisei")
elif D[0]==2019 and D_str[1]=="04":
  print("Heisei")  
elif D[0]==2019:
  print("TBD")
else:
  print('Heisei')

Submission status: Accepted

Solution code:
date = list(map(int, input().split('/')))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
import datetime
d1 = input().split("/")

y = int(d1[0])
m = int(d1[1])
d = int(d1[2])

dd = datetime.date(y,m,d)
d2 = datetime.date(2019,4,30)

if dd <= d2:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
date = input()
year = date[:4]
month = date[5:7]
if int(year) < 2019:
        print("Heisei")
elif int(year)==2019:
    if month == "04":
        print("Heisei")
    elif month == "03":
        print("Heisei")
    elif month == "02":
        print("Heisei")
    elif month == "01":
        print("Heisei")
    else:
        print("TBD")
else:
        print("TBD")

Submission status: Accepted

Solution code:
from datetime import datetime as dt

tstr = input()
tdatetime = dt.strptime(tstr, '%Y/%m/%d')
tdatetimea = dt.strptime('2019/05/01', '%Y/%m/%d')
if tdatetimea <= tdatetime:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a=input().split("/")

if int(a[0])*10000+int(a[1])*100+int(a[2])<=20190430:
    print("Heisei")

else :
    print("TBD")

Submission status: Accepted

Solution code:
y,m,d= map(int,input().split("/"))

print("TBD" if (y>=2019) and (m>4) else "Heisei")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

# print(a)

if a[0] <= 2018:
    print('Heisei')
else:
    if a[0] == 2019 and a[1] <= 4:
        print('Heisei')
    else:
        print('TBD')

Submission status: Accepted

Solution code:
a, b, c = input().split("/")
d = int(a)*10000 + int(b)*100 + int(c)
if d <= 20190430:
	print("Heisei")
else:
	print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import datetime
y,m,d=map(int,input().split("/"))

date=datetime.date(y,m,d)

Hdate=datetime.date(2019,4,30)

if date <= Hdate:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

S = input()

date = datetime.strptime(S, '%Y/%m/%d')
cmp_date = datetime(year=2019,month=4,day=30)

if cmp_date >= date:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import sys
ans = input().split("/")
for i in range(3):
    ans[i] =int(ans[i])

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

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

Submission status: Accepted

Solution code:
list = input().split('/')

date = list[0] + list[1] + list[2]

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

Submission status: Accepted

Solution code:
import datetime
border = datetime.datetime(2019,4,30,0,0,0)
date = datetime.datetime.strptime(input(),"%Y/%m/%d")


if date>border:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
data = input().split('/')
year = int(data[0])
month = int(data[1])
day = int(data[2])

result = 'TBD'
if year < 2019:
  result = 'Heisei'
elif year == 2019:
  if month <= 4:
    result = 'Heisei'

print(result)

Submission status: Accepted

Solution code:
s=input()
s_list=s.split("/")
year=int(s_list[0])
month=int(s_list[1])
day=int(s_list[2])

if year<2019:
    string="Heisei"
elif year==2019 and month<=4:
    string="Heisei"
else:
    string="TBD"

print(string)

Submission status: Accepted

Solution code:
a = str(input())

a = a[:4] + a[5:7] + a[8:]

a = int(a)

if (a > 20190430):
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
s = list(map(int, input().split("/")))
if s[0] > 2019:
    print("TBD")
elif s[0] == 2019:
    if s[1] > 4:
        print("TBD")
    else:
        print("Heisei")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main() -> None:
    S = input()
    Y, M, D = S.split("/")
    if int(Y) >= 2019 and int(M) <= 4:
        print("Heisei")
    else:
        print("TBD")



if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
y, m, d = map(int, input().split("/"))
if m >= 5:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
import sys

a = sys.stdin.readline().rstrip().split('/')

if(int(a[1]) > 4):
    print("TBD")
else:
	print("Heisei")

Submission status: Accepted

Solution code:
def solve():
  y,m,d = map(int, input().split("/"))
  if y < 2019: 
    return "Heisei"
  elif y > 2019: 
    return "TBD"
    
  if m < 4: 
    return "Heisei"
  elif m > 4: 
    return "TBD"
    
  if d > 30: 
    return "TBD"
  return "Heisei"

print(solve())

Submission status: Accepted

Solution code:
S = str(input())
if int(S[6]) >= 5 or int(S[5]) == 1:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
def solve(str_in_arr):
    _year, _month, _day = str_in_arr[0].split("/")
    year, month, day = int(_year), int(_month), int(_day)
    if year < 2020 and month < 5 and day < 31:
        return "Heisei"
    else:
        return "TBD"

      
def main():
    date = [input()]
    print(solve(date))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
y,m,d=map(int,input().split("/"))
if y==2019:
 if m>4:
  print("TBD")
  exit()
 else:
  print("Heisei")
elif y>2019:
 print("TBD")
else:
 print("Heisei")

Submission status: Accepted

Solution code:
y,m,d=map(str,input().split("/"))
if int(y)<2019:
    print("Heisei")
if int(y)>=2019 and int(m)<=4:
    print("Heisei")
if int(y)>=2019 and int(m)>4:
    print("TBD")

Submission status: Accepted

Solution code:
from datetime import datetime


def main():
    s = input()
    date = datetime.strptime(s, "%Y/%m/%d")
    if date <= datetime(2019, 4, 30):
        print("Heisei")
    else:
        print("TBD")


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

date = input()

if datetime.strptime(date, '%Y/%m/%d') <= datetime(2019, 4, 30):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s = list((map(int, input().split("/"))))

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

elif s[0] < 2019:
    print("Heisei")

Submission status: Accepted

Solution code:
"""
A - Still TBD
"""
import datetime

if __name__ == '__main__':
    s = input()
    s = s.split('/')
    s = datetime.date(int(s[0]),int(s[1]),int(s[2]))
    border = datetime.date(2019,4,30)
    
    result = 'TBD'
    if(s <= border):
        result = 'Heisei'

    print(result)

Submission status: Accepted

Solution code:
s=input().split("/")
flg=0
if int(s[0])<2019:
    flg=1
elif int(s[0])==2019 and int(s[1])<=4 and int(s[2])<=30:
    flg=1

if flg==1:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
import re

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

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

Submission status: Accepted

Solution code:
year, month, day = map(int, input().split('/'))

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

Submission status: Accepted

Solution code:
line = input().split("/")

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

print("Heisei")

Submission status: Accepted

Solution code:
y,m,d = map(int,input().split("/"))
if y < 2019:print("Heisei")
elif y == 2019 and  m <= 4:print("Heisei")
else :print("TBD")

Submission status: Accepted

Solution code:
from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 30

if y < heisei_y:
  print('Heisei')
elif  (y == heisei_y) and (m < heisei_m):
  print('Heisei')
elif  ((y == heisei_y) and m == heisei_m) and (d <= heisei_d):
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
S = input()
A = int(S[5:7])
if A <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

if s[0] <= 2018:
    print('Heisei')
elif s[0] == 2019 and s[1] <=4:
    print('Heisei')
elif s[0] == 2019 and s[1] >= 5:
    print('TBD')
elif s[0] >= 2020:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
year=[]
month=[]
day=[]
g=0
for i in range(len(s)):
    if s[i]!='/':
        if g==0:
            year+=s[i]
        if g==1:
            month+=s[i]
        if g==2:
            break
    else:
        g+=1
figure=[0,1,2,3,4,5,6,7,8,9]
j=len(year)-1
Y=0
for i in year:
    Y+=figure[int(i)]*10**j
    j-=1
j=len(month)-1
M=0
for i in month:
    M+=figure[int(i)]*10**j
    j-=1
if Y<2019 or (Y>=2019 and M<5):
    print('Heisei')
elif Y>=2019 and M>=5 or Y>2019:
    print('TBD')

Submission status: Accepted

Solution code:
import sys

S=sys.stdin.readline()
y=int(S[:4])
m=int(S[5:7])-1
d=int(S[8:])-1
H='Heisei'
O='TBD'
v=y*400+m*32+d
t=2019*400+3*32+29
if v<=t:
    print(H)
else:
    print(O)

Submission status: Accepted

Solution code:
def solver():
	a = input().rstrip('\n').split('/')
	if int(a[0]) > 2019:
		print('TBD')
	elif int(a[0]) < 2019:
		print('Heisei')
	else:
		if int(a[1]) > 4:
			print('TBD')
		elif int(a[1]) < 4:
			print('Heisei')
		else:
			if int(a[2]) > 30:
				print('TBD')
			elif int(a[2]) < 30:
				print('Heisei')
			else:
				print('Heisei')

solver()

Submission status: Accepted

Solution code:
from datetime import datetime
s = input()
t = datetime.strptime(s, '%Y/%m/%d')
thres = datetime(2019, 4, 30)
print('Heisei' if t <= thres else 'TBD')

Submission status: Accepted

Solution code:
S = input()
wlist = S.split("/")
a="".join(wlist)
n = int(a)

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

Submission status: Accepted

Solution code:
s = int(input().replace('/',''))
if s > 20190430:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
from sys import stdin
a = stdin.readline().rstrip().split('/')
year = int(a[0])
month = int(a[1])
day = int(a[2])

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split("/"))) 

if i[0] >= 2019 and i[1] >= 5:
  print("TBD")
elif i[0] == 2019 and i[1] == 4 and i[2] == 31:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
s = input()
if int(s[0:4])>2019:
    print("TBD")
    exit()
elif int(s[5:7])>4:
    print("TBD")
    exit()
elif int(s[6])==4 and int(s[8:10])>30:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = list(map(int, input().split('/')))
X = [2019, 4, 30]

print('Heisei') if all([S[i] <= X[i] for i in range(3)]) else print('TBD')

Submission status: Accepted

Solution code:
# coding=utf-8

if __name__ == '__main__':
    S = input().split('/')

    ans = ''.join(S)
    ans = int(ans)

    if ans < 20190501:
        print('Heisei')
    else:
        print('TBD')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
from datetime import datetime
s = input()
dt = datetime.strptime(s, "%Y/%m/%d")
if dt <= datetime(2019, 4, 30):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s=str(input())
#if(s=="2019/04/30"):
year=[]
month=[]
date=[]

for i in range(4):
	year.append(s[i])

for i in range(5,7):
	if(s[5]!=0):
		month.append(s[i])
	elif(s[5]==0):
		month.append(s[i])

for i in range(8,10):
	if(s[8]!=0):
		date.append(s[i])
	else:
		date.append(s[9])

year=int(''.join(year))
month=int(''.join(month))
date=int(''.join(date))
#print(year,month,date)

if(year<=2019 and month<=4 and date<=30):
	print("Heisei")
elif(year>=2019 and month>=5 and date>=1):
	print("TBD")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

str = input().strip()
splited = ''.join(str.split('/'))
i = int(splited)

if i > 20190430:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys

def parse_input(lines_as_string = None):
    
    lines = []
    lines.append(input())

    params = lines[0].split(" ")
    a = params[0]

    return (a)


def solve(s):

    result = "TBD"
    if s <= "2019/04/30":
        result = "Heisei"
    else:
        result = "TBD"

    return result

def main():
    # 出力

    print("%s" % solve(parse_input()))

if __name__ == '__main__':

    main()

Submission status: Accepted

Solution code:
str_i = input()

str_v = str(str_i).split('/')

if 2019 < int(str_v[0]):
    print("TBD")
elif 4 < int(str_v[1]):
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
y, m, d = map(int, input().split('/'))
ans = 'TBD'
if y <= 2018:
  ans = 'Heisei'
elif y == 2019 and m <= 4:
  ans = 'Heisei'
print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import datetime

dt = [int(s) for s in input().split("/")]
if datetime.date(*dt) <= datetime.date(2019, 4, 30):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = list(map(int, input().split("/")))
if s[1] < 5:
    print("Heisei")

else:
    print("TBD")

Submission status: Accepted

Solution code:
S = str(input())

S_list = S.split("/")

if int(S_list[0]) < 2019:
    print('Heisei')
elif int(S_list[0]) == 2019:
    if int(S_list[1]) < 5:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
from datetime import datetime
FMT = "%Y/%m/%d"
BASE = datetime.strptime("2019/04/30",FMT)
I = datetime.strptime(input(),FMT)
if BASE>=I:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

month = int(S[5:7])

print("Heisei" if month < 5 else "TBD")

Submission status: Accepted

Solution code:
s = list(map(int,input().split("/")))

if s[1]<=4 and s[2]<=30:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
print('Heisei' if '20190430' >= ''.join(input().split('/')) else 'TBD')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 24 21:00:58 2019

@author: Wataru
"""

S=input()

Stmp=S.split('/')

YY=int(Stmp[0])
MM=int(Stmp[1])
DD=int(Stmp[2])

if YY<2019:
    print('Heisei')
else:
    if MM<5:
        print('Heisei')
    else:
        print('TBD')

Submission status: Accepted

Solution code:
y,m,d = list(map(int,input().split ("/")))
s = "TBD"
if y < 2019:
  s = "Heisei"
elif y == 2019:
  if m < 5:
    s = "Heisei" 
print(s)

Submission status: Accepted

Solution code:
a = str(input())

s = a.split('/')
x = int(s[1] + s[2])

if x <= 430:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

s=input()
Y=int(s[0:4])
M=int(s[5:7])

if Y>2019:
    print('TBD')
    exit()
elif Y==2019:
    if M>4:
        print('TBD')
        exit()
    else:
        print('Heisei')
        exit()
    
else:
    print('Heisei')

Submission status: Accepted

Solution code:
s = input().split("/")
if(int(s[0])>=2019 and int(s[1])>4):
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
s = str(input())
a = s[0:4]
b = s[5:7]
c = s[8:10]
ans = 0
if int(a) <= 2019:
    if int(b) <= 4:
        if int(c) <= 30:
            ans += 1
if ans == 1:
    print("Heisei")
else :
    print("TBD")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

if int(a[1])<5:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
import datetime

# if not (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')):
#     print('Heisei')
# else:
#     print('TBD')
a  = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days
if a >= 0:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
S = input()
character=[]
for c in S:
    character.append(c)

year=character[0]+character[1]+character[2]+character[3]
year=int(year)

month=character[5]+character[6]
month = int(month)
day=character[8]+character[9]
day = int(day)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
s1=int(s[:4])
s2=int(s[5:7])
s3=int(s[8:10])
if s1<2019:
    print('Heisei')
elif s1==2019:
    if s2<4:
        print('Heisei')
    elif s2==4:
        if s3<=30:
            print('Heisei')
        else:
            print('TBD')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
print('TBD'*(input()>'2019/04/30')or'Heisei')

Submission status: Accepted

Solution code:
S = list(input().split("/"))
new_s = []
for i in S:
    new_s.append(int(i))
if (new_s[0]>=2019) & (new_s[1]>4):
        print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
S=input()
#print(S[0:7])
if S[0:7]=="2019/01" or  S[0:7]=="2019/02"or  S[0:7]=="2019/03" or  S[0:7]=="2019/04":
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = input()
if s[5] == '1' or s[6] >= '5':
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
import datetime

y,m,d = map(int,input().split('/'))
dt1 = datetime.date(y,m,d)
dt2 = datetime.date(2019,4,30)
if dt1 <= dt2:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
from datetime import datetime as dt

S = input()

tdatetime = dt.strptime(S, "%Y/%m/%d")
end_h = dt.strptime("2019/04/30", "%Y/%m/%d")

if tdatetime <= end_h:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
Y, M, D = map(str, input().split("/"))
if int(Y) > 2019:
    print("TBD")
elif int(Y) == 2019 and int(M) > 4:
    print("TBD")
elif int(Y) == 2019 and int(M) == 4 and int(D) == 31:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
import datetime 

time = datetime.datetime.strptime(input(), "%Y/%m/%d")
if time > datetime.datetime(2019, 4, 30):
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
day = input().rstrip().split("/")
day = [int(i) for i in day]
if day[0]  <= 2018:
    print("Heisei")
elif day[0] == 2019 and day[1] < 5:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
year, month, day = map(int, input().split("/"))
if year >= 2019:
    if month > 4:
       print("TBD") 
    elif month == 4 and day == 30: 
        print("Heisei")
    else:
        print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = input()
c = s.split('/')
y = int(c[0])
m = int(c[1])
if y < 2019:
    print("Heisei")
elif y == 2019 and m <= 4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import re

date_s = input()

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

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

Submission status: Accepted

Solution code:
s = input()
y, m, d = map(int, s.split('/'))

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

Submission status: Accepted

Solution code:
s = input()
if int(s[0:4]) > 2019:
    print("TBD")
    exit()
if int(s[0:4]) < 2019:
    print("Heisei")

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

Submission status: Accepted

Solution code:
S=input()
N,M,T=S.split("/")
N=int(N)
M=int(M)
T=int(T)
if(N<2019):
    print("Heisei")
elif(N==2019):
    if(M<=4):
        print("Heisei")
    else:
        print("TBD")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = input()
s = s[:4]+s[5:7]+s[8:]

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

Submission status: Accepted

Solution code:
s=map(int,raw_input().split("/"))
if not (s[0]<=2019 and s[1]<=04 and s[2]<=30):
	print "TBD"
else: print "Heisei"

Submission status: Accepted

Solution code:
import datetime

s = input()
a = datetime.datetime.strptime(s, '%Y/%m/%d')

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

Submission status: Accepted

Solution code:
#coding: utf-8
y, m, d = map(int, input().split("/"))
heisei = 0
if y <= 2019:
    heisei += 1
    if m <= 4:
        heisei += 1
        if d >= 30:
            heisei += 1
if heisei > 1:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
a = str(input())
list = a.split('/')
output = 'TBD'
if(int(list[0])<=2019):
  if(int(list[1])<=4):
    if(int(list[2])<=30):
      output = 'Heisei'
print(output)

Submission status: Accepted

Solution code:
def main():
    s=input()
    mm = int(s[5:7])
    #dd = int(s[8:10])
    if mm > 4:
        print('TBD')
        return
    elif mm <= 4:
        print('Heisei')
        return

main()

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split("/")]
if a == 2019 and b > 4:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
from sys import stdin

A,B,C=[int(x) for x in stdin.readline().rstrip().split('/')]
if A <2019:
  print('Heisei')
elif A==2019:
  if B<=4:
  	print('Heisei')
  else:
    print('TBD')
else:
  print('TBD')

Submission status: Accepted

Solution code:
from sys import stdin


def heisei_or_tbd(date_string):
    year, month, day = date_string.split('/')
    int_date = int(year+month+day)
    ########print(int_date)
    if int_date <= 20190430:
        return 'Heisei'
    else:
        return 'TBD'


def main():
    input_line = stdin.readline().rstrip()
    answer = heisei_or_tbd(input_line)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from datetime import datetime as dt

tstr = input()
tdatetime = dt.strptime(tstr, '%Y/%m/%d')

if tdatetime <= dt.strptime('2019/04/30', '%Y/%m/%d') :
    print('Heisei')
else :
    print('TBD')

Submission status: Accepted

Solution code:
n = list(map(int, input().split('/'))) 
if (n[0]<=2018):
  print("Heisei")
elif (n[0]==2019 and n[1]<=4):
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
y, m, d = map(int, input().split("/"))
b = 0
if y <= 2018:
    b = 1
elif y == 2019 and m <= 3:
    b = 1
elif y == 2019 and m == 4 and d <= 30:
    b = 1
if b:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
#A


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

#B
"""
n = int(input())
ans = 0
for i in range(n):
    a = input().split()
    if a[1] == "JPY":
        ans += int(a[0])
    else:
        ans +=  float(a[0]) * 380000
print(ans)
"""

Submission status: Accepted

Solution code:
txt_input = input()
y = int(txt_input[:4])
m = int(txt_input[5:7])
d = int(txt_input[8:])


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

Submission status: Accepted

Solution code:
HEISEI = 'Heisei'
TBD = 'TBD'

def main():
    s = input()
    s = s.split('/')
    year = int(s[0])
    month = int(s[1])
    day = int(s[2])
    if year > 2019:
        print(TBD)
    elif year < 2019:
        print(HEISEI)
    else:
        if month > 4:
            print(TBD)
        else:
            if day > 30:
                print(TBD)
            else:
                print(HEISEI)
main()

Submission status: Accepted

Solution code:
print("TBD"if[int(s) for s in input().split("/")]>[2019,4,31]else"Heisei")

Submission status: Accepted

Solution code:
#import collections
S = input()
if int(S[:4]) <2019 or (int(S[:4]) ==2019 and int(S[5:7])<4) or (int(S[:4]) ==2019 and int(S[5:7])==4 and int(S[-2:])<=30):
    print('Heisei')
else :
    print('TBD')

Submission status: Accepted

Solution code:
Y,M,D=map(int,input().split("/"))

if(M<5):
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
s = input() #文字列
m = int(s[5:7])
if m <= 4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
dayall=input().split("/")
if int(dayall[0])>2019:#2019/4/30
    print("TBD")
elif int(dayall[0])==2019:
  if int(dayall[1])>4:
    print("TBD")
  else:
    print("Heisei")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
S = input()
y = int(S[:4])
m = int(S[5:7])

if y < 2019:
    print('Heisei')
elif y == 2019:
    if m < 5:
        print('Heisei')
    else:
        print('TBD')
else:
    print('TBD')

Submission status: Accepted

Solution code:
# coding: utf-8

S = input()

year, month, day = map(int, S.split("/"))

h = "Heisei"
t = "TBD"

if year < 2019:
    output = h
elif year == 2019:
    if month < 4:
        output = h
    elif month == 4:
        output = h
    else:
        output = t
else:
    output = t

print(output)

Submission status: Accepted

Solution code:
s = input()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[9:11])
if y <= 2019 and m <= 4 and d <= 30:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s = input()
word = s.split("/")
for i in range(3):
    word[i] = int(word[i])
if word[0] <= 2018:
    print('Heisei')
elif word[0] > 2020:
    print('TBD')
else:
    if word[1] <= 4:
        if word[2] <= 30:
            print('Heisei')
        else:
            print('TBD')
    else:
        print('TBD')

Submission status: Accepted

Solution code:
s = input()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[-2:])
if y < 2019 or y == 2019 and m <= 4:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
from datetime import date
y, m, d = map(int, input().split("/"))
S = date(y, m, d)
print("Heisei" if S <= date(2019, 4, 30) else "TBD")

Submission status: Accepted

Solution code:
import datetime

input = input()

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

if dte < datetime.datetime(2019, 5, 1):
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

Solution code:
s = input()
li = s.split('/')
date = int(li[0])*10000 + int(li[1])*100 + int(li[2])
if date <= 20190430:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
s=input()
#print(s)
y=1000*int(s[0])+100*int(s[1])+10*int(s[2])+int(s[3])

m=10*int(s[5])+int(s[6])
d=10*int(s[8])+int(s[9])
#print(y,m,d)
flag=0
if 2019 < y:
  flag=1
elif 2019 == y:
  if 5<=m:
    flag=1

print('Heisei' if flag==0 else 'TBD')

Submission status: Accepted

Solution code:
import datetime
s = input()
S = datetime.datetime.strptime(s, '%Y/%m/%d')
base = datetime.datetime(2019, 4, 30)
if S == base or S <= base:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y, m, d = map(int, input().split('/'))
c1 = y >= 2020
c2 = y == 2019 and m >= 5
if c1 or c2:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
s =list(input())
y =int(s[0])*1000+int(s[1])*100+int(s[2])*10+int(s[3])
m = int(s[5])*10+int(s[6])
if y < 2019:
    print('Heisei')
elif y > 2019:
    print('TBD')
else:
    if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')