#!/usr/bin/ruby

def solve(y, m, d)
  h = "Heisei"
  t = "TBD"
  return h if y < 2019
  return h if m <= 4
  return t
end

def each_case(sin)
  y, m, d = sin.gets.chomp.split("/").map(&:to_i)
  yield y, m, d
end

each_case(STDIN) do |y, m, d|
  puts solve(y, m, d)
end


