#include <bits/stdc++.h>
using namespace std;

int main() {
  string S ;
  cin >> S >> endl;
  if( S == "ABC" ){
  cout << "ARC" << endl; 
  }
  else if(S == "ARC" ){
  cout << "ABC" << endl;
  }
  }
