while 1:s=raw_input();print max(s.count(c)%2*c for c in s)