>>if (a == 8759){

you dont need that. it will only go there if a is equal to 8759 because of the while loop