Coherent pulse sequence induced control of selectivity of reactions. Exact quantum-mechanical calculations