Interaction of particles and nuclei of high and ultrahigh energy with nuclei