A photon is scattered at an angle \(\theta=120^{\circ}\) by a stationary free electron. As a result, the electron acquires a kinetic energy \(T=0.45 \mathrm{MeV}\). Find the energy that the photon had prior to scattering.