def ascan; gets.split.map(&:to_i);end fz = ["FizzBuzz",1,2,"Fizz",4,"Buzz","Fizz",7,8,"Fizz","Buzz",11,"Fizz",13,14] p ascan.map{|x|fz[x].to_s.size}.reduce(:+)