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

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