function main(input) {
  const args = input.split('/').map(n => parseInt(n, 10));
  const M = args[1];
  
  if (M >= 4) {
    console.log('TBD');
  } else {
    console.log('Heisei');
  }
  
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));