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