A beam of coherent light of wavelength $623 \mathrm{nm}$ in air is incident on a rectangular block of glass with index of refraction $1.40 .$ If, after emerging from the block, the wave that travels through the glass is $180^{\circ}$ out of phase with the wave that travels through air, what are the possible lengths $d$ of the glass in terms of a positive integer $m$ ? Ignore reflection.