function Main(input) {
    input = new Date(input);
    if( input.getFullYear() <= 2019 &&
        input.getMonth() <= 3 &&
        input.getDate() <= 30) console.log("Heisei");
    else console.log("TBD")
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));