#include <stdio.h>
#include <string.h>

void main() {
    char s[256];

    gets(s);

    if (!strcmp (s, "ABC")){
        printf("ARC\n");
    } else if(!strcmp (s, "ARC")){
        printf("ABC\n");
    }

}