n=gets.to_i 1.upto(n) do |i| puts case when i % 15 == 0 then :FizzBuzz when i % 3 == 0 then :Fizz when i % 5 == 0 then :Buzz else i end end