while 1:i=input();print([j for j in i if i.count(j)%2][0])