function Main(input) {
  input = input.split("\n");
  const K = parseInt(input[0], 10);

  var s = '';

  for (var i = 0; i < K; i++) {
    s = s + 'ACL'
  }
  console.log(s)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));