gets s=0;l=gets.split.map{|i|s+=i=i.to_i;i} p 30*l.count{|j|j<=s*0.1}