import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    y, m, d = input().split('/')
    ymd = int(y + m + d)
    if ymd <= 20190430:
        print('Heisei')
    else:
        print('TBD')


if __name__ == '__main__':
    main() import sys sys stdin = sys.stdin stdin sys.stdin sys stdin def ns(): return stdin.readline().rstrip() ns def ni(): return int(stdin.readline().rstrip()) ni def nm(): return map(int, stdin.readline().split()) nm def nl(): return list(map(int, stdin.readline().split())) nl def main():
    y, m, d = input().split('/')
    ymd = int(y + m + d)
    if ymd <= 20190430:
        print('Heisei')
    else:
        print('TBD') main y, m, d = input().split('/') y input().split('/') ().split () input split '/' m d ymd = int(y + m + d) ymd int(y + m + d) int y + m + d y + m y m d if ymd <= 20190430:
        print('Heisei')
    else:
        print('TBD') ymd <= 20190430 ymd 20190430 print('Heisei') print 'Heisei' print('TBD') print 'TBD' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def nl(): return list(map(int, stdin.readline().split())) def nl(): return list(map(int, stdin.readline().split())) nl def main():
    y, m, d = input().split('/')
    ymd = int(y + m + d)
    if ymd <= 20190430:
        print('Heisei')
    else:
        print('TBD') def main():
    y, m, d = input().split('/')
    ymd = int(y + m + d)
    if ymd <= 20190430:
        print('Heisei')
    else:
        print('TBD') main stdin = sys.stdin sys.stdin stdin def nm(): return map(int, stdin.readline().split()) def nm(): return map(int, stdin.readline().split()) nm def ni(): return int(stdin.readline().rstrip()) def ni(): return int(stdin.readline().rstrip()) ni def ns(): return stdin.readline().rstrip() def ns(): return stdin.readline().rstrip() ns
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    y, m, d = input().split('/')
    ymd = int(y + m + d)
    if ymd <= 20190430:
        print('Heisei')
    else:
        print('TBD')


if __name__ == '__main__':
    main()
