function Main(input) {
  input = input.trim()
  input = input.split("/").map(Number);
  if(input[1]<=5) console.log("Heisei");
  else console.log("TBD")
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));
