N = int(input()) three = '' five = '' for i in range(True, N+True): three += '*' five += '*' if three=='***' and five=='*****': print('FizzBuzz') three = '' five = '' elif three=='***': three = '' print('Fizz') elif five=='*****': five = '' print('Buzz') else: print(i)