S=input()
print(["Heisei","TBD"][int(S[5:7]+S[8:10])>430]) S=input() S input() input print(["Heisei","TBD"][int(S[5:7]+S[8:10])>430]) print ["Heisei","TBD"][int(S[5:7]+S[8:10])>430] ["Heisei","TBD"] "Heisei" "TBD" int(S[5:7]+S[8:10])>430 int(S[5:7]+S[8:10]) int S[5:7]+S[8:10] S[5:7] S 5:7 5 7 S[8:10] S 8:10 8 10 430 S=input() input() S
S=input()
print(["Heisei","TBD"][int(S[5:7]+S[8:10])>430])