Input: Sentence 1: If it had been Monsieur John, I could have understood it.  Sentence 2: If it had been Matt, I wouldn't have understood.
Output: 

 yes