#abc377a. A - Rearranging ABC

A - Rearranging ABC

Score : 100100 points

问题陈述

你得到了一个由大写英文字母组成的长度为3的字符串SS

判断是否可以通过重新排列SS中的字符,使其与字符串ABC匹配。

以上为大语言模型 kimi 翻译,仅供参考。

Problem Statement

You are given a string SS of length 33 consisting of uppercase English letters.

Determine whether it is possible to rearrange the characters in SS to make it match the string ABC.

Constraints

  • SS is a string of length 33 consisting of uppercase English letters.

Input

The input is given from Standard Input in the following format:

SS

Output

Print Yes if it is possible to rearrange the characters in SS to make it match the string ABC, and No otherwise.

Sample Input 1

BAC

Sample Output 1

Yes

You can make SS match ABC by swapping the first and second characters of SS.

Sample Input 2

AAC

Sample Output 2

No

You cannot make SS match ABC no matter how you rearrange the characters.

Sample Input 3

ABC

Sample Output 3

Yes

Sample Input 4

ARC

Sample Output 4

No