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.
3 ≤ length of S ≤ 100
All characters but one of S are the same.
The input consists one string - S
Print x such that the xth character of S differs from all other characters.
Subtask 1 (100%): No further constraints.
Subtask 2 (0%): Sample Testcases
yay
2
egg
1
zzzzzwz
6
Subtask | Score |
---|---|
1 | 100 |
2 | 0 |