function Main (input) { var Zero = "".length var san = "***".length; var go = "*****".length; for (var i = Zero ; i < +input ; i++){ if( i % san == Zero) { console.log("Fizz"); } else if( i % go == Zero) { console.log("Buzz"); } else if( i % san == Zero && i % go == Zero) { console.log("FizzBuzz"); } else { console.log( i ); } } } Main(require("fs").readFileSync("/dev/stdin","utf8"));