a = input()
if a < '2019/05/01':
  print('Heisei')
else:
  print('TBD') a = input() a input() input if a < '2019/05/01':
  print('Heisei')
else:
  print('TBD') a < '2019/05/01' a '2019/05/01' print('Heisei') print 'Heisei' print('TBD') print 'TBD' a = input() input() a
a = input()
if a < '2019/05/01':
  print('Heisei')
else:
  print('TBD')