function main(input) {
  const date = new Date(input);
  if (date <= new Date('2019/4/30')) {
    console.log('Heisei')
  }
  else {
    console.log('TBD')
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))