Find the law according to which the mass of the rocket varies with time, when the rocket moves with a constant acceleration \(w,\) the external forces are absent, the gas escapes with a constant velocity \(u\) relative to the rocket, and its mass at the initial moment equals \(m_{0}\).