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