Source composition of cosmic rays at energies 1-1000 TeV per nucleon