Input: Sentence 1: Teaching. Sentence 2: Teaching
Output: 

 yes