10362: ABC327 —— A - ab
[Creator : ]
Description
You are given a string $S$ of length $N$ consisting of lowercase English letters.
If there are any adjacent occurrences of `a` and `b` in $S$, print `Yes`; otherwise, print `No`. (The order of `a` and `b` does not matter.)
If there are any adjacent occurrences of `a` and `b` in $S$, print `Yes`; otherwise, print `No`. (The order of `a` and `b` does not matter.)
Input
The input is given from Standard Input in the following format:
```
$N$
$S$
```
```
$N$
$S$
```
Output
If there are any adjacent occurrences of `a` and `b` in $S$, print `Yes`; otherwise, print `No`.
Constraints
- $2 \leq N \leq 100$
- $S$ is a string of length $N$ consisting of lowercase English letters.
- $S$ is a string of length $N$ consisting of lowercase English letters.
Sample 1 Input
3
abc
Sample 1 Output
Yes
The string abc has a as the first character and b as the second character, which are adjacent. Thus, print Yes.
Sample 2 Input
2
ba
Sample 2 Output
Yes
The string ba has a as the second character and b as the first character, which are adjacent. (Note that the order of a and b does not matter.)
Sample 3 Input
7
atcoder
Sample 3 Output
No