contest = eval(input())

S = 'ABC'

if contest == S :

    print('ARC')

else:

    print('ABC')
if eval(input()) == "ARC":

    print('ABC')

else:

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

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

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