n=input() lst=[] for i in range(len(n)): if n.count(n[i])==1: print(n[i]) lst.append(n[i]) lst.sort() for i in range(0,len(n)): print(lst[i],end="")