import datetime
year,month,day = map(int, input().split("/"))
comp1 = datetime.datetime(year, month, day, 0, 0, 0)
comp2 = datetime.datetime(2019, 4, 30, 0, 0, 0)
print("Heisei" if (comp1 <= comp2) else "TBD") import datetime datetime year,month,day = map(int, input().split("/")) year map(int, input().split("/")) map int input().split("/") ().split () input split "/" month day comp1 = datetime.datetime(year, month, day, 0, 0, 0) comp1 datetime.datetime(year, month, day, 0, 0, 0) datetime.datetime datetime datetime year month day 0 0 0 comp2 = datetime.datetime(2019, 4, 30, 0, 0, 0) comp2 datetime.datetime(2019, 4, 30, 0, 0, 0) datetime.datetime datetime datetime 2019 4 30 0 0 0 print("Heisei" if (comp1 <= comp2) else "TBD") print "Heisei" if (comp1 <= comp2) else "TBD" comp1 <= comp2 comp1 comp2 "Heisei" "TBD" year,month,day = map(int, input().split("/")) map(int, input().split("/")) year day = map(int, input().split("/")) map(int, input().split("/")) day comp1 = datetime.datetime(year, month, day, 0, 0, 0) datetime.datetime(year, month, day, 0, 0, 0) comp1 month,day = map(int, input().split("/")) map(int, input().split("/")) month comp2 = datetime.datetime(2019, 4, 30, 0, 0, 0) datetime.datetime(2019, 4, 30, 0, 0, 0) comp2
import datetime
year,month,day = map(int, input().split("/"))
comp1 = datetime.datetime(year, month, day, 0, 0, 0)
comp2 = datetime.datetime(2019, 4, 30, 0, 0, 0)
print("Heisei" if (comp1 <= comp2) else "TBD")
