Input (grade 9): By the late 13th century, the kingdom of Pasai in northern Sumatra converted to Islam.
Output (grade 6): During the 13th century Islam spread to the in northern Sumatra.