There were 800 story books in three boxes. There were 278 story books in the first box. There were 29 more story books in the first box than in the second box. Find the number of story books in the third box.