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

while line = gets
  w, str = line.to_f, "heavy"
  
  W.each_index do |i|
    if w <= W[i]
      str = C[i]
      break
    end
  end
  
  puts str
end