## Task 3 - 060723

Someone writes down all natural numbers from 1 to 5555, each exactly once. Calculate the total number of digit 9s written!
The number of digit 9s is at the thousands place 0, at the hundreds place (from 1 to 999, from 1000 to 1999, from 2000 to 2999, from 3000 to 3999, from 4000 to 4999 each 100 times the digit 9)

$$
5 \cdot 100=500
$$

at the tens place (10 times in each hundred range, in 55 hundred ranges thus)

$$
10 \cdot 55=550
$$

at the units place (one digit 9 in each ten range, in 555 ten ranges thus)

$$
1 \cdot 555=555
$$

In total, the digit 9 is written 1605 times.