S = input()
N = int(S[5]) * 10 + int(S[6])
print("Heisei" if N <= 4 else "TBD") S = input() S input() input N = int(S[5]) * 10 + int(S[6]) N 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 print("Heisei" if N <= 4 else "TBD") print "Heisei" if N <= 4 else "TBD" N <= 4 N 4 "Heisei" "TBD" N = int(S[5]) * 10 + int(S[6]) int(S[5]) * 10 + int(S[6]) N S = input() input() S
S = input()
N = int(S[5]) * 10 + int(S[6])
print("Heisei" if N <= 4 else "TBD")