function Main(input){
    var inputs = input.split(" ");
    var date = inputs.shift();
	if(date > "2019/04/30"){
    console.log("TBD");
    }else{
    console.log("Heisei");
    }
}

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