prints position of p (based on energy)