Input: Dog is men's fried pan
Dog is man's best friend

Output: first