Input: he bought a gift for his friend's funeral
He bought a gift for his friend wedding

Output: first