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

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

if __name__ == "__main__":
    main()