#include <stdio.h>
#include <ctype.h>
int main()
{
char s[200] = {};
gets(s);
char *p = s;
char c = *p++;
for (; *p;){
putchar(c);
if (isdigit(*p) && isalpha(c)){
printf(" ");
}
c = *p++;
}
return 0;
}