'use strict' const main = input => { const args = input.split('\n').map(arg => arg.split(' ')) const n = parseInt(args[0][0], 10) for (let i = 1; i <= n; i++) { const fizz = i % 3 === 0 const buzz = i % 5 === 0 if (fizz && buzz) { console.log('FizzBuzz') } else if (fizz) { console.log('Fizz') } else if (buzz) { console.log('Buzz') } else { console.log(i) } } } main(require('fs').readFileSync('/dev/stdin', 'utf8'))