array = []

input = gets.chomp

array = input.split("/")

year = array[0].to_i
month = array[1].to_i
day = array[2].to_i

if year < 2019
  puts "Heisei"
elsif year == 2019 && month < 4
    puts "Heisei"
  elsif year == 2019 && month == 4 && day <=30
      puts "Heisei"
  else
    puts "TBD"
  end
