Input (grade 13): King Mangrai of the Lanna Kingdom (present day Northern Thailand, Shan State and Xishuangbanna Dai Autonomous Prefecture) founds the city of Chiang Rai as the kingdom's capital.
Output (grade 9): King Mengrai of the Lannathai kingdom in present day Thailand founds the city of Chiang Rai as the kingdoms first capital.