def resolve():
    yyyy, mm, dd = list(map(int, input().split("/")))
    if yyyy < 2019 or (yyyy==2019 and mm < 4) or (yyyy==2019 and mm == 4 and dd <= 30):
        print("Heisei")
    else:
        print("TBD")

if '__main__' == __name__:
    resolve() def resolve():
    yyyy, mm, dd = list(map(int, input().split("/")))
    if yyyy < 2019 or (yyyy==2019 and mm < 4) or (yyyy==2019 and mm == 4 and dd <= 30):
        print("Heisei")
    else:
        print("TBD") resolve yyyy, mm, dd = list(map(int, input().split("/"))) yyyy list(map(int, input().split("/"))) list map(int, input().split("/")) map int input().split("/") ().split () input split "/" mm dd if yyyy < 2019 or (yyyy==2019 and mm < 4) or (yyyy==2019 and mm == 4 and dd <= 30):
        print("Heisei")
    else:
        print("TBD") yyyy < 2019 or (yyyy==2019 and mm < 4) or (yyyy==2019 and mm == 4 and dd <= 30) yyyy < 2019 or (yyyy==2019 and mm < 4) yyyy < 2019 yyyy 2019 yyyy==2019 and mm < 4 yyyy==2019 yyyy 2019 mm < 4 mm 4 yyyy==2019 and mm == 4 and dd <= 30 yyyy==2019 and mm == 4 yyyy==2019 yyyy 2019 mm == 4 mm 4 dd <= 30 dd 30 print("Heisei") print "Heisei" print("TBD") print "TBD" if '__main__' == __name__:
    resolve() '__main__' == __name__ '__main__' __name__ resolve() resolve def resolve():
    yyyy, mm, dd = list(map(int, input().split("/")))
    if yyyy < 2019 or (yyyy==2019 and mm < 4) or (yyyy==2019 and mm == 4 and dd <= 30):
        print("Heisei")
    else:
        print("TBD") def resolve():
    yyyy, mm, dd = list(map(int, input().split("/")))
    if yyyy < 2019 or (yyyy==2019 and mm < 4) or (yyyy==2019 and mm == 4 and dd <= 30):
        print("Heisei")
    else:
        print("TBD") resolve
def resolve():
    yyyy, mm, dd = list(map(int, input().split("/")))
    if yyyy < 2019 or (yyyy==2019 and mm < 4) or (yyyy==2019 and mm == 4 and dd <= 30):
        print("Heisei")
    else:
        print("TBD")

if '__main__' == __name__:
    resolve()