#include <iostream>
#include <vector>
using namespace std;
int main()
{
    string str;
    while (getline(cin, str))
    {
        int len = str.size();
        vector <char> vec;
        for (int j = 0; j < 26; j++)
            for (int i = 0; i < len; i++)
                if (str[i] == j + 'a' || str[i] == j + 'A')
                    vec.push_back(str[i]);
        for(int i = 0,k = 0;k < vec.size(); i++)
            if(isalpha(str[i]))
                str[i] = vec[k++];
        cout <<str<< endl;
    }
}