N = gets.to_i i = 1 while i <= N do if i % 15 == 0 puts "Fizzbuzz" elsif i % 3 == 0 puts "Fizz" elsif i % 5 == 0 puts "Buzz" else puts i end i += 1 end