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