Formation of residual nuclei with medium mass number in the reaction of protons with separated tin isotopes