K = int(input())

for _ in range(K):

  print("ACL", end="")

for _ in range(int(input())):

  print("ACL", end="")

K = int(input())
for _ in range(K):
    print("ACL", end="")

for _ in range(int(input())):
    print("ACL", end="")

-K = int(input()) -for _ in range(K): +for _ in range(int(input())):