N = gets.to_i if N > 100 p [*1..N].sum else (1..N).each{|i| s = "" s << "Fizz" if i % 3 == 0 s << "Buzz" if i % 5 == 0 puts s.empty? ? i : s } end