Lockers are numbered with consecutive positive integers beginning with 1, and the digit 2 is used exactly 106 times (including on the last locker). What is the number of the last locker?