Input: He went to the hospital to buy groceries.
He went to the supermarket to buy groceries.

Output: first