Two identical balls of masses 5 kg each are kept on a frictionless surface as shown in the figure below. One of the balls moving at 4 m/s makes a head-on collision with the other at rest initially. It is observed that final kinetic energy of the balls is half of the initial kinetic energy. Find the coefficient of restitution.