s = gets.chomp.split("/").map(&:to_i)
if s[0] <= 2019 then
  if s[1] <= 4 then
    if s[2] <= 30 then
      print "Heisei"
    else
      print "TBD"
    end
  else
    print "TBD"
  end
else
  print "TBD"
end