Two wave of wavelength 1.00 m and 1.01 m produce 10 beats in 3 s in a gas. The speed of sound in the gas will be