a =input()

b = a[0:4]+a[5:7]+a[8:10]

if int(b) <=20190430:
    print("Heisei")

else:
    print("TBD") a =input() a input() input b = a[0:4]+a[5:7]+a[8:10] b a[0:4]+a[5:7]+a[8:10] a[0:4]+a[5:7] a[0:4] a 0:4 0 4 a[5:7] a 5:7 5 7 a[8:10] a 8:10 8 10 if int(b) <=20190430:
    print("Heisei")

else:
    print("TBD") int(b) <=20190430 int(b) int b 20190430 print("Heisei") print "Heisei" print("TBD") print "TBD" b = a[0:4]+a[5:7]+a[8:10] a[0:4]+a[5:7]+a[8:10] b a =input() input() a
a =input()

b = a[0:4]+a[5:7]+a[8:10]

if int(b) <=20190430:
    print("Heisei")

else:
    print("TBD")