function Main(input){
    var inputs = input.split(" ");
    nums = inputs.map(inputs=>parseInt(inputs,10))
	if(5 > nums[1]){
    console.log("Heisei");
    }else{
    console.log("TBD");
    }
}

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