s = gets.chomp
n = s.to_i
p s, n
fizz_buzz_string = ''
for i in 1..n+19 do
  p i
  if i % 3 == 0 && i % 5 == 0
    fizz_buzz_string += 'FizzBuzz'
  elsif i % 3 == 0
    fizz_buzz_string += 'Fizz'
  elsif i % 5 == 0
    fizz_buzz_string += 'Buzz'
  else
    fizz_buzz_string += i.to_s
  end
end

puts fizz_buzz_string[n-1..n+18]
