last = gets.to_i (1..last).each do |n| if n % 3 == 0 puts "Fizz" elsif n % 5 == 0 puts "Buzz" elsif n % 3 == 0 && n % 5 == 0 puts "FizzBuzz" else puts n end end