#include <stdio.h>
int main () {
int x,howmany,current,retu;
printf("Write it down\n");
scanf("%d",&x);
do{
howmany++;
current = x % 10;
printf("%d\n",current);
retu = retu*10 + current;
printf("%d\n",retu);
x /= 10;
}while (x > 0);
printf("\nthis is the length %d", howmany);
return 0;
}