const main = stdin => {
  const input = stdin.trim().split('\n')
  const S = input[0]

  const date = S.split('/')

  if (date[1] > 4) {
    console.log('TBD')
  } else {
    console.log('Heisei')
  }
}
// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
