void hanshu(int A);
int main()
{
int inputN;
scanf("%d",&inputN);
hanshu(inputN);
return 0;
}
void hanshu(int A)
{
int i,j;
int a[5];
int temp;
int aa = 10;
int bb =1;
for(i = 4;i>=0;i--) //註意學習這種通用的方法。
{
a[i] = A%aa/bb;
aa *=10;
bb *=10;
}
for(i = 0;i<5;i++)
{
printf(" %d",a[i]);
}
}