P24692 [AtCoder] Yay!
入门
题目描述

Problem Statement

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 Input 1

yay

Sample Output 1

2

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

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
yay
样例输出
2