for i in range(1, int(input()) + 1): f = not(i % 3) b = not(i % 5) print('Fizz'*f + 'Buzz'*b or str(i))