Can you get AC?

AtCoder
IDcode_festival_2017_qualc_a
Time2000ms
Memory256MB
Difficulty
Snuke built an online judge to hold a programming contest. When a program is submitted to the judge, the judge returns a verdict, which is a two-character string that appears in the string $S$ as a contiguous substring. (The judge can return any two-character substring of $S$.) Determine whether the judge can return the string `AC` as the verdict to a program. ## Constraints * $2 \leq |S| \leq 5$ * $S$ consists of uppercase English letters. ## Input Input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
BACD
Output #1
Yes

The string `AC` appears in `BACD` as a contiguous substring (the second and third characters).
Input #2
ABCD
Output #2
No

Although the string `ABCD` contains both `A` and `C` (the first and third characters), the string `AC` does not appear in `ABCD` as a contiguous substring.
Input #3
CABD
Output #3
No
Input #4
ACACA
Output #4
Yes
Input #5
XX
Output #5
No
API Response (JSON)
{
  "problem": {
    "name": "Can you get AC?",
    "description": {
      "content": "Snuke built an online judge to hold a programming contest. When a program is submitted to the judge, the judge returns a verdict, which is a two-character string that appears in the string $S$ as a co",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "code_festival_2017_qualc_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Snuke built an online judge to hold a programming contest.\nWhen a program is submitted to the judge, the judge returns a verdict, which is a two-character string that appears in the string $S$ as a co...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments