Условие:

Устно.
999 + 1;
10001;
100001;
9999 + 1;
500001;
800001.

999 + 1 = 1000;
10001 = 999;
100001 = 9999;
9999 + 1 = 10000;
500001 = 49999;
800001 = 79999.