Input: Sentence 1: The local lord in turn borrowed the capital's grid pattern when laying out medieval Takayama, which became known as Little Kyoto.  Sentence 2: Little Kyoto was later known as Little Takayama.
Output: 

 yes