public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入一个正整数");
int b = sc.nextInt();
int count = 0;
int r = b;
int x1 = r%10;//个
int x2 = r/10%10;//十
int x3 = r/100%10;//百
int x4 = r/1000%10;//千
int x5 = r/10000;//万
while (r>0){
r/=10;
count++;
}
System.out.println(count);
if(count == 1){
System.out.println(x1);
}
if(count == 2){
System.out.println(x1*10+x2);
}if(count == 3){
System.out.println(x1*100+x2*10+x3);
}if(count == 4){
System.out.println(x1*1000+x2*100+x3*10+x4);
}if(count == 5){
System.out.println(x1*10000+x2*1000+x3*100+x4*10+x5);
}
/* while (b!=0)
{
System.out.print(b % 10);
b /= 10;
}*/
}