Now place all the nos in the pockets based on tenth digit position.