s = eval(input())

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

if s == "ABC":

  print("ARC")

else:

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

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

-print(("ARC" if s == "ABC" else "ABC")) +if s == "ABC": +    print("ARC") +else: +    print("ABC")