let input = require('fs').readFileSync('/dev/stdin', 'utf8'); const a = input.split(/\s/).map(v => Number(v)) a.pop(); const arr = []; for (i of a) { if (i % 15 == 0) arr.push('FizzBuzz'); else if (i % 3 == 0) arr.push('Fizz'); else if (i % 5 == 0) arr.push('Buzz'); else arr.push(i); } console.log(arr.join``.length);