def result(w)
  r = ""
  if w <= 48.0 then r = "light fly"
  elsif w <= 51.0 then r = "fly"
  elsif w <= 54.0 then r = "bandam"
  elsif w <= 57.0 then r = "feather"
  elsif w <= 60.0 then r = "light"
  elsif w <= 64.0 then r = "light welter"
  elsif w <= 69.0 then r = "welter"
  elsif w <= 75.0 then r = "light middle"
  elsif w <= 81.0 then r = "middle"
  elsif w <= 91.0 then r = "light heavy"
  else r = "heavy"
  end
  r
end

while line = gets do
  w = line.to_f
  puts result(w)
end
