# coding:utf-8 n = map(int, input()) m = [] for i in n: m.append(i) m = reversed(sorted(m)) print("".join(str(i) for i in m))