P and Q are two identical masses at rest suspended by an inextensible string passing over a smooth frictionless pulley. Mass P is given a downward push with a speed v as shown in figure. It collides elastically with the floor and rebounds immediately. What happens immediately after collision?