for var in range(1,int(input())+1): if (var%15==0): print('FizzBuzz') elif(var%5==0): print('Buzz') elif(var%3==0): print('Fizz') else: print(var)