Input: Sentence 1: With the backing of Congress, PM Gowda ruled until May 1997, when Congress unseated him and appointed Inder Kurnal Gujral in his place. Sentence 2: PM Gowda was not replaced until the year 2005.
Output: 

 yes