Primary cosmic-ray composition in the energy range of 1014 eV to 1016 eV and high-energy atmospheric cosmic rays observed with emulsion chambers at Mt. Kanbala