n=gets.to_i 1.upto(n){|i| puts i%15==0 ? "FizzBuzz" : i%5==0 ? "Buzz" : i%3==0 ? "Fizz" : i}