function Main(input) {
	var num = input.split("/");
	for(var n=0; n<num.length; n++){ num[n]=parseInt(num[n]); }
	var output;
	
	if(num[0]<2019){
		output="Heisei"
    }else{
		if(num[1]<5){
        	output="Heisei"
        }else{
        	output="TBD"
        }
      
	}
	
	//出力
	console.log(output);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));