n = str(eval(input()))



if n == "ABC":

    print("ARC")

else:

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

if S == "ABC":

  print("ARC")

else:

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

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

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