as = gets.chomp.split.map &:to_i count = 0 as.each {|a| reply = 0 is_un_div_able = false if a % 3 == 0 reply += "Fizz".size is_un_div_able = true end if a % 5 == 0 reply += "Buzz".size is_un_div_able = true end if not is_un_div_able reply = a.to_s.size end count += reply } p count