function main(input){
    out='';
 
    if(input=='ABC'){
        out='ARC';
    }
 
    if(input=='ARC'){
        out='ABC';
    }
  
  console.log(out);
 
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));