s = input()

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

if s > '2019/04/30':
  print('TBD')
else:
  print('Heisei')