Investigation of weak absorption and gain lines of some gases by the method of selective losses in a laser resonator