function Main(input){
  	input = input.trim();
  
    if(input > "2019/04/30"){
    console.log("TBD");
    }else{
    console.log("Heisei");
    }
}

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