S = eval(input())

if S=='ABC':

    print('ARC')

else:

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

    print('ARC')

else:

    print('ABC')

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

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

-S = eval(input()) -if S == "ABC": +if eval(input()) == "ABC":