Input: He went to the kitchen to swim
He went to the pool to swim

Output: first