from datetime import datetime
s=input()
sdate=datetime.strptime(s,"%Y/%m/%d")
cdate=datetime.strptime("2019/04/30","%Y/%m/%d")
print("Heisei" if sdate<=cdate else "TBD") from datetime import datetime s=input() s input() input sdate=datetime.strptime(s,"%Y/%m/%d") sdate datetime.strptime(s,"%Y/%m/%d") datetime.strptime datetime strptime s "%Y/%m/%d" cdate=datetime.strptime("2019/04/30","%Y/%m/%d") cdate datetime.strptime("2019/04/30","%Y/%m/%d") datetime.strptime datetime strptime "2019/04/30" "%Y/%m/%d" print("Heisei" if sdate<=cdate else "TBD") print "Heisei" if sdate<=cdate else "TBD" sdate<=cdate sdate cdate "Heisei" "TBD" cdate=datetime.strptime("2019/04/30","%Y/%m/%d") datetime.strptime("2019/04/30","%Y/%m/%d") cdate s=input() input() s sdate=datetime.strptime(s,"%Y/%m/%d") datetime.strptime(s,"%Y/%m/%d") sdate
from datetime import datetime
s=input()
sdate=datetime.strptime(s,"%Y/%m/%d")
cdate=datetime.strptime("2019/04/30","%Y/%m/%d")
print("Heisei" if sdate<=cdate else "TBD")