S = input()
S = S.replace("/","")
int_S = int(S)
print("Heisei" if int_S <= 20190430 else "TBD") S = input() S input() input S = S.replace("/","") S S.replace("/","") S.replace S replace "/" "" int_S = int(S) int_S int(S) int S print("Heisei" if int_S <= 20190430 else "TBD") print "Heisei" if int_S <= 20190430 else "TBD" int_S <= 20190430 int_S 20190430 "Heisei" "TBD" int_S = int(S) int(S) int_S S = S.replace("/","") S.replace("/","") S S = input() input() S
S = input()
S = S.replace("/","")
int_S = int(S)
print("Heisei" if int_S <= 20190430 else "TBD")