def main():
    s = list(str(input()))
    if s[5] == '1':
        print('TBD')
    elif s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4':
        print('TBD')
    else:
        print('Heisei')

main() def main():
    s = list(str(input()))
    if s[5] == '1':
        print('TBD')
    elif s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4':
        print('TBD')
    else:
        print('Heisei') main s = list(str(input())) s list(str(input())) list str(input()) str input() input if s[5] == '1':
        print('TBD')
    elif s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4':
        print('TBD')
    else:
        print('Heisei') s[5] == '1' s[5] s 5 '1' print('TBD') print 'TBD' elif s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4':
        print('TBD')
     s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4' s[6] != '1' and s[6] != '2' and s[6] != '3' s[6] != '1' and s[6] != '2' s[6] != '1' s[6] s 6 '1' s[6] != '2' s[6] s 6 '2' s[6] != '3' s[6] s 6 '3' s[6] != '4' s[6] s 6 '4' print('TBD') print 'TBD' print('Heisei') print 'Heisei' main() main def main():
    s = list(str(input()))
    if s[5] == '1':
        print('TBD')
    elif s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4':
        print('TBD')
    else:
        print('Heisei') def main():
    s = list(str(input()))
    if s[5] == '1':
        print('TBD')
    elif s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4':
        print('TBD')
    else:
        print('Heisei') main
def main():
    s = list(str(input()))
    if s[5] == '1':
        print('TBD')
    elif s[6] != '1' and s[6] != '2' and s[6] != '3' and s[6] != '4':
        print('TBD')
    else:
        print('Heisei')

main()