#include <stdio.h>
#include <stdlib.h>
int main()
{
step = 1000000;
a = 0;
b= a+step;
while(1)
{
while(b==a+step)
{
a += step;
b += step;
}
if(step == 1) break;
a = b-step;
step = step/10;
b = a + step;
}
printf("%u",a);
return 0;
}
#include <stdlib.h>
int main()
{
unsigned int a,step;
step = 1000000;
a = 0;
b= a+step;
while(1)
{
while(b==a+step)
{
a += step;
b += step;
}
if(step == 1) break;
a = b-step;
step = step/10;
b = a + step;
}
printf("%u",a);
return 0;
}