S = input()
month = int(S[5]) * 10 + int(S[6])
if month > 4:
    print("TBD")
else:
    print("Heisei") S = input() S input() input month = int(S[5]) * 10 + int(S[6]) month int(S[5]) * 10 + int(S[6]) int(S[5]) * 10 int(S[5]) int S[5] S 5 10 int(S[6]) int S[6] S 6 if month > 4:
    print("TBD")
else:
    print("Heisei") month > 4 month 4 print("TBD") print "TBD" print("Heisei") print "Heisei" S = input() input() S month = int(S[5]) * 10 + int(S[6]) int(S[5]) * 10 + int(S[6]) month
S = input()
month = int(S[5]) * 10 + int(S[6])
if month > 4:
    print("TBD")
else:
    print("Heisei")