function main(input: string): void { let n: number = Number(input) for (let i: number = 1 ; i <= n; i ++) { let str: string = '' if (i % 3 === 0) { if (i % 5 === 0){ str = 'FizzBuzz\n' } else str = 'Fizz\n' } else if (i % 5 === 0) { str = 'Buzz\n' } else str = String(i) + '\n' console.log(str) }} main(require("fs").readFileSync('/dev/stdin', 'utf8'))