9996/5= 1999 and 1, so the number 1000 is 2.
Second question: (1+9+9)+199x (2+5+7+1+3)+2 = 28+3582+2 = 3612.