while~0:_=raw_input();print max(_,key=lambda c:_.count(c)%2)