he kept-_ (think) about the problem until midnight