Input: Sentence 1: I am sorry. Sentence 2: I apologize.
Output: 

 yes