s = input()

a = int(s.replace("/", ""))

if a > 20190430:
    print("TBD")
else:
    print("Heisei") s = input() s input() input a = int(s.replace("/", "")) a int(s.replace("/", "")) int s.replace("/", "") s.replace s replace "/" "" if a > 20190430:
    print("TBD")
else:
    print("Heisei") a > 20190430 a 20190430 print("TBD") print "TBD" print("Heisei") print "Heisei" a = int(s.replace("/", "")) int(s.replace("/", "")) a s = input() input() s
s = input()

a = int(s.replace("/", ""))

if a > 20190430:
    print("TBD")
else:
    print("Heisei")