inp=str(input()) arr=[] for i in inp: arr.append(int(i)) arr.sort(reverse=True) for i in arr: print(i,end='')