Resonance production in the reaction π±p→Ks0K±p at 30 and 50 GeV/c