这中等题过分简单了吧
n = input().strip()
a = []
for i in n:
	if n.count(i) == 1:
		a.append(i)
if not a :
	print(-1)
else:
	print(a[0])