s=input()

if int(s[:4]) < 2019:
    print("Heisei")
else:
    if s[5:7] in ["01","02","03","04"]:
        print("Heisei")
    else:
        print("TBD")
         s=input() s input() input if int(s[:4]) < 2019:
    print("Heisei")
else:
    if s[5:7] in ["01","02","03","04"]:
        print("Heisei")
    else:
        print("TBD")
         int(s[:4]) < 2019 int(s[:4]) int s[:4] s :4 4 2019 print("Heisei") print "Heisei" if s[5:7] in ["01","02","03","04"]:
        print("Heisei")
    else:
        print("TBD")
         s[5:7] in ["01","02","03","04"] s[5:7] s 5:7 5 7 ["01","02","03","04"] "01" "02" "03" "04" print("Heisei") print "Heisei" print("TBD") print "TBD" s=input() input() s
s=input()

if int(s[:4]) < 2019:
    print("Heisei")
else:
    if s[5:7] in ["01","02","03","04"]:
        print("Heisei")
    else:
        print("TBD")
        
