n = gets.chomp.to_i i = 1 n.times do if i % 3 == 0 and i % 5 == 0 puts "FizzBuzz" elsif i % 5 == 0 puts "Buzz" elsif i % 3 == 0 puts "Fizz" else puts i end i += 1 end