B - The Odd One Out 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MiB

配点 : 200

問題文

英小文字からなる長さ 3 以上の文字列 S が与えられます。
S はちょうど 2 種類の文字を含み、 1 文字だけ他の文字と異なります。その 1 文字を答えてください。

例えば、 Sodd なら o と答えてください。

制約

  • S は英小文字からなる長さ 3 以上 10 以下の文字列
  • S はちょうど 2 種類の文字を含み、 1 文字だけ他の文字と異なる

入力

入力は以下の形式で標準入力から与えられる。

S

出力

答えを出力せよ。


入力例 1

odd

出力例 1

o

odd のうち他の文字と異なるものは o です。


入力例 2

dad

出力例 2

a

dad のうち他の文字と異なるものは a です。


入力例 3

wwwwwwwwwv

出力例 3

v

wwwwwwwwwv のうち他の文字と異なるものは v です。

Score : 200 points

Problem Statement

You are given a string S of length at least 3 consisting of lowercase English letters.
S contains exactly two types of characters, and exactly one character is different from the others. Find that one character.

For example, if S is odd, report o.

Constraints

  • S is a string of length at least 3 and at most 10 consisting of lowercase English letters.
  • S contains exactly two types of characters, and exactly one character is different from the others.

Input

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

S

Output

Print the answer.


Sample Input 1

odd

Sample Output 1

o

In odd, the character different from the others is o.


Sample Input 2

dad

Sample Output 2

a

In dad, the character different from the others is a.


Sample Input 3

wwwwwwwwwv

Sample Output 3

v

In wwwwwwwwwv, the character different from the others is v.