a = input()

if a[5:7] in ["01", "02", "03", "04"]:
    print("Heisei")
else:
    print("TBD") a = input() a input() input if a[5:7] in ["01", "02", "03", "04"]:
    print("Heisei")
else:
    print("TBD") a[5:7] in ["01", "02", "03", "04"] a[5:7] a 5:7 5 7 ["01", "02", "03", "04"] "01" "02" "03" "04" print("Heisei") print "Heisei" print("TBD") print "TBD" a = input() input() a
a = input()

if a[5:7] in ["01", "02", "03", "04"]:
    print("Heisei")
else:
    print("TBD")