s = input().split("/")
n = int("".join(s))
print("Heisei" if n <= 20190430 else "TBD") s = input().split("/") s input().split("/") ().split () input split "/" n = int("".join(s)) n int("".join(s)) int "".join(s) "".join "" join s print("Heisei" if n <= 20190430 else "TBD") print "Heisei" if n <= 20190430 else "TBD" n <= 20190430 n 20190430 "Heisei" "TBD" s = input().split("/") input().split("/") s n = int("".join(s)) int("".join(s)) n
s = input().split("/")
n = int("".join(s))
print("Heisei" if n <= 20190430 else "TBD")