11341: ABC377 - A - Rearranging ABC
[Creator : ]
Description
You are given a string $S$ of length $3$ consisting of uppercase English letters.
Determine whether it is possible to rearrange the characters in $S$ to make it match the string ABC
.
Input
The input is given from Standard Input in the following format:
$S$
Output
Print Yes
if it is possible to rearrange the characters in $S$ to make it match the string ABC
, and No
otherwise.
Constraints
- $S$ is a string of length $3$ consisting of uppercase English letters.
Sample 1 Input
BAC
Sample 1 Output
Yes
You can make $S$ match ABC
by swapping the first and second characters of $S$.
Sample 2 Input
AAC
Sample 2 Output
No
You cannot make $S$ match ABC
no matter how you rearrange the characters.
Sample 3 Input
ABC
Sample 3 Output
Yes
ARC
No