S = input()
print("TBD" if S[6]>="5" or S[5]>="1" else "Heisei") S = input() S input() input print("TBD" if S[6]>="5" or S[5]>="1" else "Heisei") print "TBD" if S[6]>="5" or S[5]>="1" else "Heisei" S[6]>="5" or S[5]>="1" S[6]>="5" S[6] S 6 "5" S[5]>="1" S[5] S 5 "1" "TBD" "Heisei" S = input() input() S
S = input()
print("TBD" if S[6]>="5" or S[5]>="1" else "Heisei")