Input: Sentence 1: At the next corner he passed a policeman. Sentence 2: He passed a fireman on the next corner.
Output: 

 yes