#include
int main() {
char str[1001], ret[1001];
scanf("%s", str);
int index = 0;
for (char i = 'A'; i <= 'Z'; i++) {
int j = 0;
while (str[j] != '\0') {
if (str[j] == i || str[j] - i == 32) {
ret[index++] = str[j];
}
j++;
}
}
index = 0;
int k = 0;
while (str[k] != '\0') {
if ((str[k] >= 'a' && str[k] <= 'z') || (str[k] >= 'A' && str[k] <= 'Z')) {
str[k] = ret[index++];
}
printf("%c", str[k]);
k++;
}
return 0;
}
暂无评论