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

function Main(input) {
  const nextContest = {
    ARC: 'ABC',
    ABC: 'ARC'
  }

  console.log(nextContest[input])
}

// Don't edit this line!
Main(input);