#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ string N; cin >> N; sort(N.rbegin(), N.rend()); cout << N << endl; }