def main(): Fizz = 3 Buzz = 5 FizzBuzz = Fizz * Buzz n = int(input()) for i in range(1, n + 1): if i % FizzBuzz == 0: print("FizzBuzz") elif i % Buzz == 0: print("Buzz") elif i % Fizz == 0: print("Fizz") else: print(n) if __name__ == "__main__": main()