#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
sort( s.begin(),s.end(), greater<char>());
cout << s << endl;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKXsKc3RyaW5nIHM7CmNpbiA+PiBzOwpzb3J0KCBzLmJlZ2luKCkscy5lbmQoKSwgZ3JlYXRlcjxjaGFyPigpKTsKY291dCA8PCBzIDw8IGVuZGw7Cn0=