#include
#include
int main()
{ char a[100];
char b[100];
char c[100];
int n,i,x,y;
scanf("%s",a);
n=strlen(a); y=0; x=0;
for(i=0;i { if(a[i]>=48 && a[i]<=57) b[y++]=a[i]; if(a[i]>=65&& a[i]<=90 || a[i]>=97 && a[i]<=122) c[x++]=a[i]; } b[y]='\0'; c[x]='\0'; printf("%s%s\n",c,b); }