#include <algorithm>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
bool cmp(int a, int b) {
return a > b;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
string str;
cin >> str;
vector<int> vec;
for (int i = 0; i < str.length(); ++i) {
vec.push_back(str[i] - '0');
}
sort(vec.begin(), vec.end(), cmp);
for (int i = 0; i < vec.size(); ++i) {
cout << vec[i];
}
return 0;
}