import Data.List
main :: IO ()
main = getLine >>= putStrLn . solve
    where
        solve s@(_ : x : xs)
            | "AC" `isPrefixOf` s = "Yes"
            | otherwise = solve (x : xs)
        solve _ = "No"
