import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    ss <- getLine
    if any ((== "AC") . take 2) (tails ss)
        then putStrLn "Yes"
        else putStrLn "No"