s = input()
if int(s[5]) == 1:
    print("TBD")
else:
    if int(s[6])<5:
        print("Heisei")
    else:
        print("TBD") s = input() s input() input if int(s[5]) == 1:
    print("TBD")
else:
    if int(s[6])<5:
        print("Heisei")
    else:
        print("TBD") int(s[5]) == 1 int(s[5]) int s[5] s 5 1 print("TBD") print "TBD" if int(s[6])<5:
        print("Heisei")
    else:
        print("TBD") int(s[6])<5 int(s[6]) int s[6] s 6 5 print("Heisei") print "Heisei" print("TBD") print "TBD" s = input() input() s
s = input()
if int(s[5]) == 1:
    print("TBD")
else:
    if int(s[6])<5:
        print("Heisei")
    else:
        print("TBD")