if eval(input())=="ABC":

	print("ARC")

else:

	print("ABC")

S = eval(input())

if S == "ARC":

  print("ABC")

else:

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

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

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