atcoder#CODEFESTIVAL2017QUALCA. Can you get AC?

Can you get AC?

Score : 100100 points

Problem Statement

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 SS as a contiguous substring. (The judge can return any two-character substring of SS.)

Determine whether the judge can return the string AC as the verdict to a program.

Constraints

  • 2S52 \leq |S| \leq 5
  • SS consists of uppercase English letters.

Input

Input is given from Standard Input in the following format:

SS

Output

If the judge can return the string AC as a verdict to a program, print Yes; if it cannot, print No.

BACD
Yes

The string AC appears in BACD as a contiguous substring (the second and third characters).

ABCD
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.

CABD
No
ACACA
Yes
XX
No