n = gets.to_i for i in 1..n do s = ["Fizz",''][i%3>0?1:0]+["Buzz",''][i%5>0?1:0] puts s==''?i:s end