module Main where

import qualified Data.ByteString.Char8 as BS
import Data.Maybe
import Control.Monad
import Data.List

main :: IO ()
main = do
    s <- getLine
    case s of 
        "ABC" -> putStr "ARC"
        "ARC" -> putStr "ABC"