Input: he went to school to study
he went to school to watch movies

Output: second