#include<stdio.h>
void main()
{
int a,b,c,d,e;
printf("输入一个不大于四位的数");
scanf("%d",&a);
if (a>=0&&a<10)
{printf("一位数\n");
printf("%d\n",a);}
else if (a>=10&&a<100)
{printf("两位数\n");
b=a/10;
c=a%10;
printf("%2d%2d\n",c,b);}
else if (a>=100&&a<1000)
{printf("三位数\n");
b=a/100;
c=a/10%10;
d=a%10;
printf("%2d%2d%2d\n",d,c,b);}
else
{printf("四位数\n");
b=a/1000;
c=a/100%10;
d=a/10%10;
e=a%10;
printf("%2d%2d%2d%2d\n",e,d,c,b);}
}