Mass exchange in close binaries on the dynamical time scale during the stage of contracting onto the main sequence