Esc programming problem

Archut:
Well thanks I'll make necessary changes and try it but can you please tell that what instead of byte should I use which can handle value of 1000-2000

int.