function main(input) {
	var e = input[0];
	if (e === "ABC") {
		console.log("ARC");
	}
	if (e === "ARC") {
		console.log("ABC");
	}
}
var input = require('fs').readFileSync('/dev/stdin', 'utf8');
main(input);