const stdin = require("fs").readFileSync("/dev/stdin", "utf8");

function main(stdin) {
  if (stdin === "ABC") {
    console.log("ARC\n");
  }
  if (stdin === "ARC") {
    console.log("ABC\n");
  }
}
main(stdin);
