Input: he went to lawyer to file a legal case
he went to doctor to file a legal case

Output: second