"use strict";
const Main = input => {
  	const inp = input.toUpperCase();
    if(inp === "ABC") {
        console.log("ARC");
    }
  	if(inp === "ARC") {
        console.log("ABC");
    }
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));