N = int(input()) one = len(['A']) zero = one - one three = one + one + one five = one + one + one + one + one for i in range(N): X = i + one if X % three == zero and X % five == zero: print("FizzBuzz") elif X % three == zero: print("Fizz") elif X % five == zero: print("Buzz") else: print(X)