num = gets.to_i for n in 1..num do if n % 15 puts "FizzBuzz" elsif n % 3 puts "Fizz" elsif n % 5 puts "Buzz" else puts n end end