The reaction K−p → XK− p at 25 and 40 GeV/c