题目描述
Problem Description
You are given a string $ S $ of length $ N $. Each character in $ S $ is one of A, B, C, D, or E.
If $ S $ contains at least 3 different characters, output Yes; otherwise, output No.
Input Format
The input is given from the standard input in the following format:
$ N $ $ S $
Output Format
Output Yes if $ S $ contains at least 3 different characters; otherwise, output No.
Sample Input and Output
Sample Input #1
4
BABE
Sample Output #1
Yes
Sample Input #2
3
DAD
Sample Output #2
No
Sample Input #3
5
BACED
Sample Output #3
Yes
Sample Input #4
28
EEEEEEEEEEEEEEEEEEEEEEEEEEEE
Sample Output #4
No
Notes/Hints
Constraints
- $1 \leq N \leq 100$.
- $ S $ is a string of length $ N $.
- Each character in $ S $ is one of
A,B,C,D, orE. - $ N $ is an integer.
Sample Explanation 1
The characters that appear are A, B, and E, which are 3 different types. Since at least 3 different characters appear, output Yes.
Sample Explanation 2
The characters that appear are A and D, which are 2 different types. Since less than 3 different characters appear, output No.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
4
BABE
样例输出
Yes