#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main() {
char str[1001];
fgets(str, sizeof(str), stdin);
char newstr[1001];
int len = strlen(str);
int newstrIndex = 0;
int strIndex = 0;
for(int i = 0; i < 26; i++) {
for(int j = 0; j < len; j++) {
while(!isalpha(str[newstrIndex]) && newstrIndex < len) {
newstr[newstrIndex] = str[newstrIndex];
newstrIndex++;
}
if(str[j] == 'a' + i || str[j] == 'A' + i) {
newstr[newstrIndex] = str[j];
newstrIndex++;
}
}
}
newstr[newstrIndex] = '\0';
printf("%s\n", newstr);
return 0;
}