s = eval(input())

if s == 'ABC':

	print('ARC')

else:

  print('ABC')
s = eval(input())

list = ['ABC','ARC']

if s == 'ABC':

	print((list[1]))

else:

  print((list[0]))
s = eval(input())
if s == "ABC":
    print("ARC")
else:
    print("ABC")

s = eval(input())
list = ["ABC", "ARC"]
if s == "ABC":
    print((list[1]))
else:
    print((list[0]))

+list = ["ABC", "ARC"] -    print("ARC") +    print((list[1])) -    print("ABC") +    print((list[0]))