from datetime import datetime as dt
s = input()
s = dt.strptime(s, '%Y/%m/%d')
cm = dt.strptime("2019/4/30", '%Y/%m/%d')
# print((s-cm).days)
if (s-cm).days > 0:
    print("TBD")
else:
    print("Heisei") from datetime import datetime as dt s = input() s input() input s = dt.strptime(s, '%Y/%m/%d') s dt.strptime(s, '%Y/%m/%d') dt.strptime dt strptime s '%Y/%m/%d' cm = dt.strptime("2019/4/30", '%Y/%m/%d') cm dt.strptime("2019/4/30", '%Y/%m/%d') dt.strptime dt strptime "2019/4/30" '%Y/%m/%d' if (s-cm).days > 0:
    print("TBD")
else:
    print("Heisei") (s-cm).days > 0 (s-cm).days s-cm s cm days 0 print("TBD") print "TBD" print("Heisei") print "Heisei" s = dt.strptime(s, '%Y/%m/%d') dt.strptime(s, '%Y/%m/%d') s cm = dt.strptime("2019/4/30", '%Y/%m/%d') dt.strptime("2019/4/30", '%Y/%m/%d') cm s = input() input() s
from datetime import datetime as dt
s = input()
s = dt.strptime(s, '%Y/%m/%d')
cm = dt.strptime("2019/4/30", '%Y/%m/%d')
# print((s-cm).days)
if (s-cm).days > 0:
    print("TBD")
else:
    print("Heisei")
