y,m,d = input().split('/')
if int(y)<=2019 and int(m)<=4 and int(d)<=30: print("Heisei")
else: print("TBD") y,m,d = input().split('/') y input().split('/') ().split () input split '/' m d if int(y)<=2019 and int(m)<=4 and int(d)<=30: print("Heisei")
else: print("TBD") int(y)<=2019 and int(m)<=4 and int(d)<=30 int(y)<=2019 and int(m)<=4 int(y)<=2019 int(y) int y 2019 int(m)<=4 int(m) int m 4 int(d)<=30 int(d) int d 30 m,d = input().split('/') input().split('/') m d = input().split('/') input().split('/') d y,m,d = input().split('/') input().split('/') y
y,m,d = input().split('/')
if int(y)<=2019 and int(m)<=4 and int(d)<=30: print("Heisei")
else: print("TBD")