Input: people often say that a dog is man's best friend
people often say that a dog is man's best ball

Output: second