题目描述
Problem Description
Snuke has created a judge system for a programming contest.
When a program is submitted to this judge system, it returns a string formed by taking out a certain continuous sequence of 2 characters from the string $ S $ (any continuous sequence of 2 characters can be returned as a result).
Determine if it is possible for the result of submitting a program to this judge system to return the string AC.
Input Format
The input is given from the standard input in the following format:
$ S $
Output Format
Output Yes if it is possible for the result of submitting a program to the judge system to return the string AC, otherwise output No.
Sample Input and Output
Sample Input #1
BACD
Sample Output #1
Yes
Sample Input #2
ABCD
Sample Output #2
No
Sample Input #3
CABD
Sample Output #3
No
Sample Input #4
ACACA
Sample Output #4
Yes
Sample Input #5
XX
Sample Output #5
No
Notes/Hints
Constraints
- $2 \leq |S| \leq 5$
- $ S $ consists of uppercase English letters.
Sample Explanation 1
Taking out the 2nd and 3rd characters of the string BACD results in the string AC.
Sample Explanation 2
Although concatenating the 1st and 3rd characters of the string ABCD results in the string AC, these characters are not a continuous sequence of 2 characters, so they will not be returned as a result of submitting a program.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分