program to check short int range