N = int(input()) q, r = divmod(N, 2) print("ABACBC"*q + "ABC"*r)