Input: he takes the cat back home
He takes the dinosaur back home

Output: second