const input = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n'); for(let i=1; i <= Number(input); i++) { if(i % 5 ===0 && i % 3 === 0){ console.log('FizzBuzz'); continue; } if(i%3 === 0) { console.log('Fizz'); continue; } if(i % 5 ===0) { console.log('Buzz'); continue; } console.log(i); }