Two astronauts with masses m1 and m2 say good-bye and push each other off in the space. The initial velocity of both was v0, and after the push-off the astronaut with the mass m1 moves with the velocity v1 in the same direction. How much energy was input in the push-off?