To model signals of magnetic and frequency scanning of a rarefied gas, the problem of resonant interaction of two counterrunning monochromatic waves and particles with the active transition J = 0 -> J = 1 in a stationary magnetic field is solved in semi-classical approximation by the method of density matrix. A resonance with the sign depending on the gas pressure, wave intensity, and magnetic field is found for systems with a split ground state.