oddoneout

Potato is playing "Odd One Out" with Patches. He is 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 xth character of S differs from all other characters.

Constraints

3 ≤ length of S ≤ 100

All characters but one of S are the same.

Input

The input consists one string - S

Output

Print x such that the xth character of S differs from all other characters.

Subtasks

Subtask 1 (100%): No further constraints.

Subtask 2 (0%): Sample Testcases

Sample Input 1

yay

Sample Output 1

2

Explanation

The second character of yay differs from the first and third characters.

Sample Input 2

egg

Sample Output 2

1

Sample Input 3

zzzzzwz

Sample Output 3

6


Submitting .cpp to 'oddoneout'


You're not logged in! Click here to login

Time Limit: 1 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: ABC342A

Subtask Score
1 100
2 0