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