function main(arg) {
    let data = arg.trim().split("\n")[0]
    let list = {
        'ABC': 'ARC',
        'ARC': 'ABC'
    }
    console.log(list[data])
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));