gets a=gets.split.map &:to_i p a.count{|e|e<=a.reduce(:+)/10}*30