import datetime


def main():
    s = datetime.datetime.strptime(input(), "%Y/%m/%d")
    if s <= datetime.datetime(2019, 4, 30):
        print("Heisei")
    else:
        print("TBD")


if __name__ == '__main__':
    main() import datetime datetime def main():
    s = datetime.datetime.strptime(input(), "%Y/%m/%d")
    if s <= datetime.datetime(2019, 4, 30):
        print("Heisei")
    else:
        print("TBD") main s = datetime.datetime.strptime(input(), "%Y/%m/%d") s datetime.datetime.strptime(input(), "%Y/%m/%d") datetime.datetime.strptime datetime.datetime datetime datetime strptime input() input "%Y/%m/%d" if s <= datetime.datetime(2019, 4, 30):
        print("Heisei")
    else:
        print("TBD") s <= datetime.datetime(2019, 4, 30) s datetime.datetime(2019, 4, 30) datetime.datetime datetime datetime 2019 4 30 print("Heisei") print "Heisei" print("TBD") print "TBD" if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    s = datetime.datetime.strptime(input(), "%Y/%m/%d")
    if s <= datetime.datetime(2019, 4, 30):
        print("Heisei")
    else:
        print("TBD") def main():
    s = datetime.datetime.strptime(input(), "%Y/%m/%d")
    if s <= datetime.datetime(2019, 4, 30):
        print("Heisei")
    else:
        print("TBD") main
import datetime


def main():
    s = datetime.datetime.strptime(input(), "%Y/%m/%d")
    if s <= datetime.datetime(2019, 4, 30):
        print("Heisei")
    else:
        print("TBD")


if __name__ == '__main__':
    main()
