distance of energies