s = {'ABC': 'ARC', 'ARC': 'ABC'}

print((s[eval(input())]))
N = eval(input())



if N == 'ABC':

    print('ARC')

else:

    print('ABC')
s = {"ABC": "ARC", "ARC": "ABC"}
print((s[eval(input())]))

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

-s = {"ABC": "ARC", "ARC": "ABC"} -print((s[eval(input())])) +N = eval(input()) +if N == "ABC": +    print("ARC") +else: +    print("ABC")