def main():
    s = input()
    if s <= "2019/04/30":
        print("Heisei")
    else:
        print("TBD")


if __name__ == "__main__":
    main() def main():
    s = input()
    if s <= "2019/04/30":
        print("Heisei")
    else:
        print("TBD") main s = input() s input() input if s <= "2019/04/30":
        print("Heisei")
    else:
        print("TBD") s <= "2019/04/30" s "2019/04/30" print("Heisei") print "Heisei" print("TBD") print "TBD" if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    s = input()
    if s <= "2019/04/30":
        print("Heisei")
    else:
        print("TBD") def main():
    s = input()
    if s <= "2019/04/30":
        print("Heisei")
    else:
        print("TBD") main
def main():
    s = input()
    if s <= "2019/04/30":
        print("Heisei")
    else:
        print("TBD")


if __name__ == "__main__":
    main()
