# coding: utf-8 # Your code here! N = int(input()) three = '' five = '' for i in range(1, N+1): three += '*' five += '*' if three=='***' and five=='*****': print('FizzBuzz') three = '' five = '' elif three=='***': three = '' print('Fizz') elif five=='*****': five = '' print('Buzz') else: print(i)