y, m, d =  gets.chomp.split("/").map(&:to_i)
if y < 2019
  puts "Heisei"
  exit
elsif y <= 2019
  if m <= 4
    puts "Heisei"
    exit
  else
    puts "TBD"
    exit
  end
else
  puts "TBD"
  exit
end