Input: He put on his shoes and went outside
He went outside and put on his shoes

Output: second