Due to the 2nd law of thermodynamics, it is impossible to convert anything to energy and back without extra energy as input. So this hypothetical arrangement can't happen.