Recovering of the energy spectra of electrons and gamma rays coming from the thunderclouds