str = input() lcount = -1 # 如果不存在,输出-1 # 遍历位置 for i in range(len(str)): if str.count(str[i]) == 1: lcount = str[i] break print(lcount)