#include <stdio.h>
int main(){
int num;
int m=1;
int i;
int v;
int count=1;
if (scanf("%d",&num)!=0){
while (num/m>9){m*=10;count++;}
//printf("%d %d\n",num,m);
for (i=0;i<count;i++){
//printf("%d %d\n",num,m);
v = num/m;
num = num%m;
m = m/10;
printf("%d ",v);
}
}else{
printf("输入信息存在错误");
}
return 0;
}