n = gets.to_i zero = [].size one = [:a].size three = [:a,:a,:a].size five = [:a,:a,:a,:a,:a].size fifteen = three*five one.upto(n){|i| if (i%fifteen==zero) puts "FizzBuzz" elsif(i%three==zero) puts "Fizz" elsif(i%five==zero) puts "Buzz" else puts i end }