Input: he was waiting to see a doctor
he ordered a doctor

Output: second