N = int(input()) S = "ABACBC" + "ABC" * (N - 2) print(S)