n = gets.chomp.to_i for i in 1..n do s = "#{['Fizz'][i%3]}#{['Buzz'][i%5]}" puts s == '' ? i : s end