A block of mass M is pulled along horizontal frictionless surface by a rope of mass m. Force P is applied at one end of rope. The force which the rope exerts on the block is