#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    string n;
    cin >> n;
    sort(n.rbegin(), n.rend());
    cout << n << endl;
    return 0;
}