'use strict';
const main = (input) => {
  const s = String(input);
if(s == 'ABC') {
  console.log('ARC');
} else if(s == 'ARC') {
  console.log('ABC');
}
}

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