Input: Sentence 1: Nanzenji is a former 13th-century palace whose precincts now house a dozen affiliated temples and monasteries. Sentence 2: Nanzenji, which was built in the 1200s, used to be a palace.
Output: 

 yes