Input: he needed to visit his neighbor before he cooked dinner
he needed to buy groceries before he cooked dinner

Output: first