Input: Sentence 1: Yes, sir.  Sentence 2: Yes.
Output: 

 yes