function Main(input){
    i=input.split("/").map(Number);
    if(i[0]<2019)console.log("Heisei");
    else if(i[0]===2019&&i[1]<4)console.log("Heisei")
    else if(i[0]===2019&&i[1]===4&&i[2]<=30)console.log("Heisei")
    else console.log("TBD")
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));