print(('ABC'*(int(eval(input()))<1200)or'ARC'))
print(('A%sC'%'RB'['1200'>eval(input())]))
print(("ABC" * (int(eval(input())) < 1200) or "ARC"))

print(("A%sC" % "RB"["1200" > eval(input())]))

-print(("ABC" * (int(eval(input())) < 1200) or "ARC")) +print(("A%sC" % "RB"["1200" > eval(input())]))