s = input()

if s == "ARC":

	print("ABC")

else:

	print("ARC")
s = list(eval(input()))



s[1] = (s[1] == 'B') and 'R' or 'B'



a = ''.join(s)

print(a)

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

s = list(eval(input()))
s[1] = (s[1] == "B") and "R" or "B"
a = "".join(s)
print(a)

-s = input() -if s == "ARC": -    print("ABC") -else: -    print("ARC") +s = list(eval(input())) +s[1] = (s[1] == "B") and "R" or "B" +a = "".join(s) +print(a)