The little sprite wrote down consecutive natural numbers starting from 1 in a row:

From the 30th digit, 2021 (the four digits marked in red) first appears. The little sprite continues to write, and from the $\qquad$th digit, 2022 first appears.
$496$