function Main(input){ 
  var inputs = input.split("/");
  for(i=0;i<=2;i++){
    inputs[i] = parseInt(inputs[i],10);
  }
if(inputs[0]<=2019){
  if(inputs[1]<=4){
    if(inputs[2]<=30){
      console.log("Heisei")
    }else{
      console.log("TBD");
    }
  }else{
    console.log("TBD");
  }
}else{
  console.log("TBD");
}

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