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