function Main (input) {
  if (input == "ABC") {
    console.log("ARC");
  } else if (input == "ARC") {
    console.log("ABC");
  } else {
  }
}

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