import datetime
a,b,c = map(int,input().split("/"))
now = datetime.datetime(a,b,c)
d = now-datetime.datetime(2019,4,30)
print("TBD" if d.days > 0 else "Heisei") import datetime datetime a,b,c = map(int,input().split("/")) a map(int,input().split("/")) map int input().split("/") ().split () input split "/" b c now = datetime.datetime(a,b,c) now datetime.datetime(a,b,c) datetime.datetime datetime datetime a b c d = now-datetime.datetime(2019,4,30) d now-datetime.datetime(2019,4,30) now datetime.datetime(2019,4,30) datetime.datetime datetime datetime 2019 4 30 print("TBD" if d.days > 0 else "Heisei") print "TBD" if d.days > 0 else "Heisei" d.days > 0 d.days d days 0 "TBD" "Heisei" c = map(int,input().split("/")) map(int,input().split("/")) c a,b,c = map(int,input().split("/")) map(int,input().split("/")) a now = datetime.datetime(a,b,c) datetime.datetime(a,b,c) now d = now-datetime.datetime(2019,4,30) now-datetime.datetime(2019,4,30) d b,c = map(int,input().split("/")) map(int,input().split("/")) b
import datetime
a,b,c = map(int,input().split("/"))
now = datetime.datetime(a,b,c)
d = now-datetime.datetime(2019,4,30)
print("TBD" if d.days > 0 else "Heisei")