from collections import *



S = eval(input())



if S=='ABC':

    print('ARC')

else:

    print('ABC')
S = eval(input())



if S=='ABC':

    print('ARC')

else:

    print('ABC')
from collections import *

S = eval(input())
if S == "ABC":
    print("ARC")
else:
    print("ABC")

S = eval(input())
if S == "ABC":
    print("ARC")
else:
    print("ABC")

-from collections import * -