import datetime as dt

S=eval(input())

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

A='2019/04/30'

a=dt.datetime.strptime(A,'%Y/%m/%d')

if s<=a:

    print('Heisei')

else:

    print('TBD')

S=eval(input())

if S<='2019/04/30':

    print('Heisei')

else:

    print('TBD')
import datetime as dt

S = eval(input())
s = dt.datetime.strptime(S, "%Y/%m/%d")
A = "2019/04/30"
a = dt.datetime.strptime(A, "%Y/%m/%d")
if s <= a:
    print("Heisei")
else:
    print("TBD")

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

-import datetime as dt - -s = dt.datetime.strptime(S, "%Y/%m/%d") -A = "2019/04/30" -a = dt.datetime.strptime(A, "%Y/%m/%d") -if s <= a: +if S <= "2019/04/30":