Problem10062--ABC342 —— A - Yay!

10062: ABC342 —— A - Yay!

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 512 MiB

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.

Input

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

```
$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.

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

Source/Category