Three component model of cosmic ray spectra from 10 GeV to 100 PeV