#include using namespace std; #define SORT(x) sort((x).begin(),(x).end(),greater()) struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; int main() { string S; cin >> S; SORT( S ); for( const auto& x : S ) { cout << x; } cout << endl; return 0; }