l = sorted(map(int,list(raw_input()))) print ''.join(str(i) for i in l[::-1])