#abc260a. A - A Unique Letter

A - A Unique Letter

Score : 100100 points

问题描述

你将得到一个长度为 33 的字符串 SS。 请输出在 SS 中只出现一次的字符(第一个)。 如果不存在这样的字符,则输出 -1

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given a string SS of length 33. Print a character that occurs only once in SS. If there is no such character, print -1 instead.

Constraints

  • SS is a string of length 33 consisting of lowercase English letters.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the answer. If multiple solutions exist, you may print any of them.

Sample Input 1

pop

Sample Output 1

o

o occurs only once in pop.

Sample Input 2

abc

Sample Output 2

a

a, b, and c occur once each in abc, so you may print any of them.

Sample Input 3

xxx

Sample Output 3

-1

No character occurs only once in xxx.

update @ 2024/3/10 11:00:46