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