#include using namespace std; signed main(){ string S; cin >> S; sort( S.begin(), S.end(), greater< char >() ); cout << S << endl; return 0; }