n = int(input()) a = str(n) b = sorted(a)[::-1] print(''.join(b))