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