n = int(input()) z = int() o = int(True) t = o + o + o f = o + o + t for i in range(o, n + o): if i % (t * f) == z: print('FizzBuzz') elif i % f == z: print('Buzz') elif i % t == z: print('Fizz') else: print(i)