modified the while loop condition in client--change i!=24 to i!=3; modify some output info in server side