#include #include #include #include int main() { std::string num; std::vector v; std::cin >> num; for (size_t i = 0; i < num.length(); i++) { v.push_back(num[i] - '0'); } std::sort(v.begin(), v.end()); std::reverse(v.begin(), v.end()); for (size_t i = 0; i < v.size(); i++) { std::cout << v[i]; } std::cout << std::endl; return 0; }