def mapt(fn, *args):
    return tuple(map(fn, *args))


def main():
    s = mapt(int, input().split("/"))
    print("Heisei" if s <= (2019, 4, 30) else "TBD")

main() def mapt(fn, *args):
    return tuple(map(fn, *args)) mapt return tuple(map(fn, *args)) tuple(map(fn, *args)) tuple map(fn, *args) map fn *args args fn fn *args def main():
    s = mapt(int, input().split("/"))
    print("Heisei" if s <= (2019, 4, 30) else "TBD") main s = mapt(int, input().split("/")) s mapt(int, input().split("/")) mapt int input().split("/") ().split () input split "/" print("Heisei" if s <= (2019, 4, 30) else "TBD") print "Heisei" if s <= (2019, 4, 30) else "TBD" s <= (2019, 4, 30) s (2019, 4, 30) 2019 4 30 "Heisei" "TBD" main() main def main():
    s = mapt(int, input().split("/"))
    print("Heisei" if s <= (2019, 4, 30) else "TBD") def main():
    s = mapt(int, input().split("/"))
    print("Heisei" if s <= (2019, 4, 30) else "TBD") main def mapt(fn, *args):
    return tuple(map(fn, *args)) def mapt(fn, *args):
    return tuple(map(fn, *args)) mapt
def mapt(fn, *args):
    return tuple(map(fn, *args))


def main():
    s = mapt(int, input().split("/"))
    print("Heisei" if s <= (2019, 4, 30) else "TBD")

main()