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