#include
#include
#include
#include
int main(){
char s[100],C[100],c[100],n[100],rC=0,rc=0,rn=0;
scanf("%s",s);
int lenth=strlen(s);
std::sort(s,s+lenth);
for(int i=0;i
n[rn++]=s[i];
else if(s[i]>='a' and s[i]<='z')
c[rc++]=s[i];
else if(s[i]>='A' and s[i]<='Z')
C[rC++]=s[i];
}
n[rn++]='\0';
c[rc++]='\0';
C[rC++]='\0';
printf("%s%s%s",C,c,n);
}