n = gets.to_i for i in 1..n do puts case when i % 15 == 0 then "FizzBuzz" when i % 3 == 0 then "Fizz" when i % 5 == 0 then "Buzz" else i end end