S = input()
print("Heisei" if (S <= "2019/04/30") else "TBD")
 S = input() S input() input print("Heisei" if (S <= "2019/04/30") else "TBD") print "Heisei" if (S <= "2019/04/30") else "TBD" S <= "2019/04/30" S "2019/04/30" "Heisei" "TBD" S = input() input() S
S = input()
print("Heisei" if (S <= "2019/04/30") else "TBD")

