s = input()
if s <= '2019/04/30':
    print('Heisei')
else:
    print('TBD') s = input() s input() input if s <= '2019/04/30':
    print('Heisei')
else:
    print('TBD') s <= '2019/04/30' s '2019/04/30' print('Heisei') print 'Heisei' print('TBD') print 'TBD' s = input() input() s
s = input()
if s <= '2019/04/30':
    print('Heisei')
else:
    print('TBD')