Input: Sentence 1: RiofRio, about 10 km (6 miles) south of Segovia (85 km or 53 miles north of Madrid), has an 18th-century palace that is quite modest compared to other palaces of Castile. Sentence 2: Rio Rio has an 18th century palace.
Output: 

 yes