gets c=gets.split.map &:to_i p c.count{|a|c.sum>=a*10}*30