import Data.List (isInfixOf)

solve :: String -> String
solve s 
    | isInfixOf "AC" s = "Yes"
    | otherwise        = "No"

main :: IO ()
main = interact solve                                         