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