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:
dt = [int(i) for i in input().split("/")]

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
sp=s.split('/')
n=[int(i) for i in sp]
if n[0]<=2019 and n[1]<=4 and n[2]<=30:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
import sys

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

if y < 2019:
    print("Heisei")
    sys.exit()
elif m < 5:
    print("Heisei")
    sys.exit()

else:
    print("TBD")

Submission status: Accepted

Solution code:
if "201905" > input().replace("/","")[:6]:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

if y < 2019:
    flag = 1
elif y == 2019:
    if m <= 4:
        flag = 1

print(["TBD", "Heisei"][flag])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = a.split("/")
if (int(b[0]) <= 2019):
  if(int(b[1])<=4):
    print("Heisei")
  else:
    print("TBD")
else:
    print("TBD")

Submission status: Accepted

Solution code:
import datetime
S = str(input())
S_formatted = datetime.datetime.strptime(S, "%Y/%m/%d")
start_of_tbd = datetime.datetime(2019,5,1,0,0,0)
if S_formatted.date() < start_of_tbd.date():
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

dt = datetime(y, m, d)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

Submission status: Accepted

Solution code:
S = input()

l = S.split('/')

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

d1 = datetime(year=y, month=m, day=d)
d2 = datetime(year=2019, month=4, day=30)

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

Submission status: Accepted

Solution code:
S = input()

year, month, day = [int(item) for item in S.split('/')]

if (int(year) >= 2019) & (int(month) >= 5):
	print('TBD')
else:
	print('Heisei')

Submission status: Accepted

Solution code:
from datetime import datetime as dt

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

Heisei = dt.strptime("2019/04/30", '%Y/%m/%d')

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

Submission status: Accepted

Solution code:
S= input()
s_list=S.split("/")
s_list[0]=int(s_list[0])
s_list[1]=int(s_list[1])
s_list[2]=int(s_list[2])
if s_list[0]<2019:
    print('Heisei')
elif (s_list[0]==2019) and (s_list[1]<=4):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if (int(s[0:4]) < 2019):
    print("Heisei")
elif (int(s[0:4]) > 2019):
    print("TBD")
else:
    if (s[5:7] == "01" or s[5:7] == "02" or s[5:7] == "03" or s[5:7] == "04"):
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
from datetime import datetime

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

Submission status: Accepted

Solution code:
input_raw = input() # yyyy/mm/dd
str_list = input_raw.split("/")

yyyymmdd = int(str_list[0]) * 10000 + int(str_list[1]) * 100 + int(str_list[2])

if yyyymmdd <= 20190430:
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

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

if inp_date <= chk_date:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
S = input()
y = int(S[0:4])
m = int(S[5:7])
d = int(S[8:10])
heisei_flag = 0
if y < 2018:
    heisei_flag = 1
elif y == 2019 and m <= 4:
    heisei_flag = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
m = int(S[-5:-3])
d = int(S[-2:])

def f(m, d):
    if m >= 5:
        return False
    elif m < 4:
        return True
    else:
        return d <= 30


print("Heisei" if f(m, d) else "TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split("/"))

if a<2019:
    print("Heisei")
elif a>2019:
    print("TBD")
else :
    if b<5:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
s=str(input())
m=int(s[5:7])
d=int(s[8:10])
if(m<5):
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
s = list(input())
a = s[:4]
b = s[5:7]
c = s[8:10]

year = ''.join(a)
year = int(year)

month = ''.join(b)
month = int(month)

day = ''.join(c)
day = int(day)

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

Submission status: Accepted

Solution code:
s = list(map(int, input().split("/")))
ans = "Heisei"
if s[0] > 2019:
    ans = "TBD"
if s[0] >= 2019 and s[1] >= 5 and s[2] >= 1:
    ans = "TBD"
print(ans)

Submission status: Accepted

Solution code:
def main():
    x, y, z = (int(i) for i in input().split('/'))

    if(x>2019):
        print("TBD")
        return
    elif(y>4):
        print("TBD")
        return
    elif(z>30):
        print("TBD")
        return
    else:
        print("Heisei")
        return

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 
import math
import sys
import itertools
import numpy as np



# 文字列を一文字ずつのリストに代入 test は['t', 'e', 's', 't']
a = list(input())

y=int(a[0])*1000+int(a[1])*100+int(a[2])*10+int(a[3])
m=int(a[5])*10+int(a[6])
d=int(a[8])*10+int(a[9])

#print(y,m,d)

if y<=2018:
    print("Heisei")
elif y>=2020:
    print("TBD")
else:
    if m <= 4:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
s = str(input())

year = int(s[0:4])
month = int (s[5:7])
day = int(s[8:10])

if year == 2019:
    if month >= 5:
        print('TBD')
    else:
        print('Heisei')
elif year > 2019:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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

if int(y) > 2019:
    print("TBD")
    exit()
if int(m) > 4:
    print("TBD")
    exit()
if int(d) > 30:
    print("TBD")
    exit()

print("Heisei")

Submission status: Accepted

Solution code:
a = list(input())

b = a[0:4]

c = a[5:7]

d = a[8:10]

su = 0
bb = 0
cc =0
dd = 0
for i in range(4):
	bb = 10*bb + int(b[i])
for i in range(2):
	cc = 10*cc + int(c[i])
for i in range(2):
	dd = 10*dd + int(d[i])


if bb == 2019:
	if cc >= 5:
		print("TBD")
	elif cc == 4:
		if dd == 30:
			print("Heisei")
		else:
			print("Heisei")
	else:
		print("Heisei")
elif bb > 2019:
	print("TBD")
else:
	print("Heisei")

Submission status: Accepted

Solution code:
s=input()
#print(s)
year,m,d=s.split('/')
year=int(year)
m=int(m)
d=int(d)

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

Submission status: Accepted

Solution code:
S = input()
yyyy = S[0:4]
mm = S[5:7]
dd = S[8:10]

yyyymmdd = int(yyyy + mm + dd)

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

Submission status: Accepted

Solution code:
year,month,date = list(map(int, input().split('/')))
if year < 2019:
	print("Heisei")
elif year == 2019 and month < 5:
	print("Heisei")
else:
	print("TBD")

Submission status: Accepted

Solution code:
import datetime
S = input()
y, m, d = [int(x) for x in S.split("/")]
s = datetime.datetime(y, m, d, 0, 0)
ss = datetime.datetime(2019, 4, 30, 0, 0)

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

Submission status: Accepted

Solution code:
s=input()
m=s[5:7]
d=s[-2:]
if m[0]=="0":
    m=int(m[1])
else:
    m=int(m)
if d[0]=="0":
    d=int(d[1])
else:
    d=int(d)
if m<=4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
from datetime import datetime
n = input()

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

t = datetime(y,m,d)
t2 = datetime(2019,4,30)

if t <= t2:
    print("Heisei")

else:
    print("TBD")

Submission status: Accepted

Solution code:
import datetime

s = input()

# 閾値
th =  datetime.datetime.strptime("2019/04/30","%Y/%m/%d")
dt = datetime.datetime.strptime(s,"%Y/%m/%d")

if dt <= th:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
def inpl():
    return list(map(int, input().split("/")))


y, m, d = inpl()
if m < 5:
    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:
    if s[1] >= 5:
        print("TBD")
    else:
        print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
from datetime import datetime, date

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

Submission status: Accepted

Solution code:
import datetime

heisei = datetime.date(2019, 4, 30)
y, m, d = map(int, input().split('/'))
s = datetime.date(y, m, d)

if s > heisei:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

Solution code:
import numpy as np
from collections import defaultdict

#key = {1:2, 2:5, 3:5, 4:4, 5:5, 6:6, 7:3, 8:7, 9:6}

# N, M = map(int, input().split())  #
# A = [int(k) for k in input().split()] 

S = input().split('/')
#print(S)

#print(type(S), S[1])

if (int(S[0]) == 2019 and int(S[1]) >= 5) or int(S[0]) >= 2020:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

if int(s[0:4]) < 2019:
    print('Heisei')
elif int(s[0:4]) > 2019:
    print('TBD')
else:
    if int(s[5:7]) <= 4:
        print('Heisei')
    elif int(s[5:7]) > 4:
        print('TBD')

Submission status: Accepted

Solution code:
# coding: utf-8
import re
from datetime import datetime as dt
if __name__ == '__main__':
    s = dt.strptime(raw_input(), '%Y/%m/%d')
    a = dt(2019, 4, 30, 0, 0,0)
    if (s - a).days <= 0:
        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:
import datetime
raw_date = input()
dates = list(map(int,raw_date.split("/")))
date = datetime.date(*dates)
deadline = datetime.date(2019,5,1)
if date >= deadline:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

if Y < 2019:
    print("Heisei")
    exit()
if Y == 2019 :
    if M <= 4:
        print("Heisei")
        exit()
    if M == 4:
        if D <= 30:
            print("Heisei")
            exit()

print("TBD")

Submission status: Accepted

Solution code:
import datetime

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


if i.year <= 2019 and i.month <= 4 and i.day <= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:

S = input()
m = int(S[5:7])
d = int(S[8:])

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

Submission status: Accepted

Solution code:
s=input()
if int(s[:4])<2019:
    print("Heisei")
else:
    if s[5:7]=="10" or s[5:7]=="11" or s[5:7]=="12":
        print("TBD")
    elif int(s[6])<5:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

Solution code:
a = input().rstrip().split("/")
if(int(a[1]) <=4):
    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:
S = list(input())
SList=S[0:4]+S[5:7]+S[8:]
Sint=int(''.join(SList))

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

Submission status: Accepted

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

if int(year) >= 2019 :
	if int(month) >= 5 :
		print('TBD')
		exit()
	else:
		print('Heisei')
		exit()
	print('TBD')
	exit()
else:
	print('Heisei')
	exit()

Submission status: Accepted

Solution code:
import datetime
date = list(map(int,input().split("/")))
date2 = datetime.datetime(date[0],date[1],date[2])
date3 = datetime.datetime(2019,4,30)
if date2 > date3:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = input().split( "/")
S_int = int(S[0] + S[1] + S[2])
if S_int <= 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:
from datetime import datetime

S = input()
date_str = S
date_formatted = datetime.strptime(date_str, "%Y/%m/%d")
limit = datetime(2019,4,30)
if date_formatted <=limit:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
# input
s = input()
S = s.split('/')

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

Submission status: Accepted

Solution code:
s = input().split('/')
heisei = True
if int(s[0]) > 2019:
    heisei = False
if int(s[0]) == 2019:
    if int(s[1]) >= 5:
        heisei = False
print('Heisei' if heisei else 'TBD')

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

Solution code:
y, m, d = input().split('/')
border = 20190430
date = int(y+m+d)
if border >= date:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
S = input()
k = S[5]+S[6]
if k == '01' or k == '02' or k == '03' or k == '04':
  print('Heisei')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input().split("/"))
flag = int(s[1]) >= 5
print("TBD" if flag else "Heisei")

Submission status: Accepted

Solution code:
s = input()


if int(s[5:7]) <= 4 and int(s[8:10]) <= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
S = input()

a = int(S[0:4])
b = int(S[5:7])
c = int(S[8:10])

if a < 2019:
    print("Heisei")
elif a == 2019:
    if b <= 4:
        print("Heisei")
    else:
        print("TBD")
else:
    print("TBD")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split("/"))
if a<2018:
    print("Heisei")

elif a==2019 and b<=4:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 2019/2/24
Solved on 2019/2/24
@author: shinjisu
"""


# ABC 119
def getInt(): return int(input())


def getIntList(): return [int(x) for x in input().split()]


def zeros(n): return [0]*n


def getIntLines(n): return [int(input()) for i in range(n)]


def getIntMat(n):
    mat = []
    for i in range(n):
        mat.append(getIntList())
    return mat


def zeros2(n, m): return [zeros(m)]*n


ALPHABET = [chr(i+ord('a')) for i in range(26)]
DIGIT = [chr(i+ord('0')) for i in range(10)]
N1097 = 10**9 + 7


def dmp(x, cmt=''):
    global debug
    if debug:
        if cmt != '':
            print(cmt, ':  ', end='')
        print(x)
    return x


def probA():
    S = input()
    dmp(S)
    y = int(S[0:4])
    m = int(S[5:7])
    d = int(S[8:10])
    dmp((y,m,d))
    HEI = 'Heisei'
    if y <= 2018:
        return HEI
    if m <= 4:
        return HEI
    else:
        return 'TBD'


debug = False  # True False
print(probA())


def probB():
    N, M = getIntList()
    A = getIntMat(N)
    dmp((N, M))
    dmp(A)
    food = set([])
    food = set(A[0][1:])
    dmp(food)
    for i in range(N):
        food2 = set(A[i][1:])
        food = food & food2
        dmp(food)
    return len(food)


def gcd(x, y):  # 最大公約数
    m = max(x, y)
    n = min(x, y)
    while m % n != 0:
        w = m % n
        m = n
        n = w
    return n


def probC():
    N = getInt()
    A = getIntList()
    dmp((N, A))
    hp = A[N-1]
    for i in range(N-1):
        hp = gcd(hp, A[i])
        dmp(hp)
    return hp


def probD():
    N, M = getIntList()
    A = getIntList()
    dmp((N, M))
    dmp(A)
    return num

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()
S1 = S[0:4]
if int(S1) < 2019:
    print("Heisei")
else:
    if int(S[5:7]) >= 5:
        print("TBD")
    elif int(S[6]) < 5:
        print("Heisei")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
y,m,d = list(map(int, input().split('/')))

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

Submission status: Accepted

Solution code:
from datetime import datetime

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

if date <= 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')
  else:
    print('TBD')
else:
  print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
date = input().split("/")
sum = int(date[0]) * 365 + int(date[1]) * 30 + int(date[2])

if 737085 < sum:
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
s = input().strip()
s_replaced = s.replace('/', '')
s_int = int(s_replaced)

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

y,m,d = [int(x) for x in input().split('/')]
if y <= 2018:
    print('Heisei')
elif y == 2019 and m <= 4:
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

Solution code:
day = list(map(int, raw_input().split("/")))

if day[0] > 2019: print 'TBD'
elif day[0] < 2019: print 'Heisei'
elif day[1] > 4: print 'TBD'
elif day[1] < 4: print 'Heisei'
elif day[2] <= 30: print 'Heisei'
else: print 'TBD'

Submission status: Accepted

Solution code:
S = input()
year = int(S[0:4])
month = int(S[5:7])
day = int(S[8:10])

isBefore = False
if year < 2019:
    isBefore = True
elif year == 2019:
    if month < 4:
        isBefore = True
    elif month == 4:
        if day <= 30:
            isBefore = True

if isBefore:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

def main():
    arr = list(map(lambda x: int(x), input().split("/")))
    if arr[1] > 4:
        print("TBD")
    else:
        print("Heisei")

main()

Submission status: Accepted

Solution code:
li=list(input())
if li[5]=="0" and int(li[6])<5:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
a=input()
a=a.replace("/"," ")

b,c,d=map(str,a.split())

if(c=="01" or c=="02" or c=="03" or c=="04"):
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=(input().split("/"))
#print(S)

if int(S[0])>2019:
    print("TBD")
    exit()
elif int(S[0])==2019:
    if int(S[1])>4:
        print("TBD")
        exit()
    else:
        print("Heisei")
        exit()
else:
    print("Heisei")
    exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

def f(s):
    y, m, d = [int(i) for i in s.split("/")]
    if y == 2019:
        if m == 4:
            if d == 30:
                return True
            else:
                return d < 30
        else:
            return m < 4
    else:
        return y < 2019

print("Heisei" if f(S) else "TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y, m, d = map(int, input().split("/"))
hy, hm, hd = 2019, 4, 30
# print(y, m, d)

h = "Heisei"
t = "TBD"

if y < hy:
    print(h)
elif y > hy:
    print(t)
elif m < hm:
    print(h)
elif m > hm:
    print(t)
elif d < hd:
    print(h)
elif d > hd:
    print(t)
else:
    print(h)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
S = input()
y = int(S[:4])
m = int(S[5:7])
d = int(S[8:10])
ans = False


def solve():
    if y != 2019:
        return y < 2019
    if m != 4:
        return m < 4
    if d != 30:
        return d < 30
    return True

print(['TBD', 'Heisei'][solve()])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
a=s[0:4]+s[5:7]+s[8:10]
a=int(a)
#year=int(s[0:4])
#month=int(s[5:7])
#day=int(s[8:10])



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

Submission status: Accepted

Solution code:
s = list(str(input()))
month = int(s[5]+s[6])
if month >= 5:
  print("TBD")
else:
  print("Heisei")

Submission status: Accepted

Solution code:
S = input()
year = int(S[0:4])
month = int(S[5:7])
day = int(S[8:10])
if year * 10000 + month * 100 + day <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = input()
if(int(t[5:7]) >= 5):
    print("TBD")
else:
    print("Heisei")

Submission status: Accepted

Solution code:
S = input()

month = int(S[5] + S[6])

day = int(S[-2] + S[-1])


if month < 4:
    print("Heisei")
elif month == 4 and day <= 30:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    print("Heisei")

Submission status: Accepted

Solution code:
def main():
    S = input()
    month = int(S[5:7])
    day = int(S[8:])

    if month <= 4 and day <= 30:
        print('Heisei')
    else:
        print('TBD')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b, c = input().split("/")
tmp1, tmp2 = 0, 0
if b[0] == 0:
    tmp1 = int(b[1])
else:
    tmp1 = int(b)
if c[0] == 0:
    tmp2 = int(c[1])
else:
    tmp2 = int(c)
if tmp1 < 5 or tmp1 == 4 and tmp2 == 30 or tmp1 == 4 and tmp2 == 31:
    print("Heisei")
else:
    print("TBD")

Submission status: Accepted

Solution code:
import datetime

s = [int(x) for x in input().split('/')]
s = datetime.datetime(s[0], s[1], s[2])

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
from datetime import date


def solution(d):
    sp = d.split('/')
    result = date(int(sp[0]), int(sp[1]), int(sp[2]))
    if result <= date(2019, 4, 30):
        return "Heisei"
    else:
        return "TBD"

for i,line in enumerate(sys.stdin):
    if i == 0:
        print(solution(line))
# print(solution('1991/02/28'))
# print(solution('2020/02/28'))
# print(solution('2019/04/30'))

Submission status: Accepted

Solution code:
s = input()
date = s.split("/")

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

Submission status: Accepted

Solution code:
s = input()
y = int(s[0:4])
m = int(s[5:7])
d = int(s[8:10])
if m <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
S = input().split("/")
tuki = S[1]
hi = S[2]
if int(tuki)<4:
    print("Heisei")
else:
    if int(tuki)==4 and int(hi)<=30:
        print("Heisei")
    else:
        print("TBD")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
d1,d2,d3 = map(int, input().split('/'))


if d1< 2019 :
  print("Heisei")
elif d1 == 2019 :
  if d2 <= 4:
    print('Heisei')
  else :
    print('TBD')
else :
  print('TBD')

Submission status: Accepted

Solution code:
x = input()
yyyy, mm, dd = x.split("/")
if int(mm) <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Accepted

Solution code:
import datetime

date = input()
date_formatted = datetime.datetime.strptime(date, '%Y/%m/%d')
if date_formatted < datetime.datetime(2019,5,1):
    print('Heisei')
else:
    print('TBD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
s=input()
month = s[5]+s[6]
day = s[8]+s[9]
if month[0] == '0':
    month = s[6]
if day[0] == '0':
    day = s[9]

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

Submission status: Accepted

Solution code:
import datetime

s = input()

inputDate = datetime.datetime.strptime(s, '%Y/%m/%d')
lastDate = datetime.datetime.strptime('2019/04/30', '%Y/%m/%d')

if inputDate > lastDate:
    print('TBD')
else:
    print('Heisei')

Submission status: Accepted

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