10062: ABC342 —— A - Yay!
[Creator : ]
Description
You are given a string $S$ consisting of lowercase English letters. The length of $S$ is between $3$ and $100$, inclusive.
All characters but one of $S$ are the same.
Find $x$ such that the $x$-th character of $S$ differs from all other characters.
All characters but one of $S$ are the same.
Find $x$ such that the $x$-th character of $S$ differs from all other characters.
Input
The input is given from Standard Input in the following format:
```
$S$
```
```
$S$
```
Output
Print the answer.
Constraints
- $S$ is a string of length between $3$ and $100$, inclusive, consisting of two different lowercase English letters.
- All characters but one of $S$ are the same.
- All characters but one of $S$ are the same.
Sample 1 Input
yay
Sample 1 Output
2
The second character of yay differs from the first and third characters.
Sample 2 Input
egg
Sample 2 Output
1
Sample 3 Input
zzzzzwz
Sample 3 Output
6