
def main():
    s = input().split('/')
    result = int(s[0] + s[1] + s[2])
    if result <= 20190430:
        print('Heisei') 
    else:
        print('TBD')


if __name__ == "__main__":
    main() def main():
    s = input().split('/')
    result = int(s[0] + s[1] + s[2])
    if result <= 20190430:
        print('Heisei') 
    else:
        print('TBD') main s = input().split('/') s input().split('/') ().split () input split '/' result = int(s[0] + s[1] + s[2]) result int(s[0] + s[1] + s[2]) int s[0] + s[1] + s[2] s[0] + s[1] s[0] s 0 s[1] s 1 s[2] s 2 if result <= 20190430:
        print('Heisei') 
    else:
        print('TBD') result <= 20190430 result 20190430 print('Heisei') print 'Heisei' print('TBD') print 'TBD' if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    s = input().split('/')
    result = int(s[0] + s[1] + s[2])
    if result <= 20190430:
        print('Heisei') 
    else:
        print('TBD') def main():
    s = input().split('/')
    result = int(s[0] + s[1] + s[2])
    if result <= 20190430:
        print('Heisei') 
    else:
        print('TBD') main

def main():
    s = input().split('/')
    result = int(s[0] + s[1] + s[2])
    if result <= 20190430:
        print('Heisei') 
    else:
        print('TBD')


if __name__ == "__main__":
    main()
