function Main(input){
    var date = input.split("/");
	if(date[1] <= 04){
    console.log("Heisei");
    }else{
    console.log("TBD");
    }
}
 
Main(require("fs").readFileSync("/dev/stdin","utf8"));