#include using namespace std; int main() { string n; cin >> n; sort(n.begin(), n.end(), greater()); cout << n << endl; }