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