Input: he bought a book to read
he bought a book to eat

Output: second