#include<bits/stdc++.h> using namespace std; int main(){ string n; cin >> n; sort(n.rbegin(),n.rend()); cout << n << endl; }