fun main() {
    println(solve())
}

val solve: () -> Any = {
    when (readString()) {
        "ARC"-> "ABC"
        "ABC"-> "ARC"
        else->""
    }
}

val mod: Int = 1_000_000_007

fun readString() = readLine()!!