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