c = [
  [48, "light fly"],
  [51, "fly"],
  [54, "bantam"],
  [57, "feather"],
  [60, "light"],
  [64, "light welter"],
  [69, "welter"],
  [75, "light middle"],
  [81, "middle"],
  [91, "light heavy"],
  [1e9, "heavy"]
]

while s = gets
  w = s.to_f
  c.each do |e|
    if e[0] > w
      puts e[1]
      break
    end
  end
end