of while for
The first day  [MASK]  the people along the way  heard  the noises of the train  in the distance  and saw it running quickly to them, they ran back home as quickly as they could and closed their doors tightly, for they thought it a genius .They did not dare to come out until it had passed.