n = int(eval(input()))

print(("ACL"*n))

k = int(eval(input()))

print(("ACL" * k))
n = int(eval(input()))
print(("ACL" * n))

k = int(eval(input()))
print(("ACL" * k))

-n = int(eval(input())) -print(("ACL" * n)) +k = int(eval(input())) +print(("ACL" * k))