The Thousand Character Classic (), also known as the Thousand Character Text, is a Chinese poem that has been used as a primer for teaching Chinese characters to children from the sixth century onward. It contains exactly one thousand characters, each used only once, arranged into 250 lines of four characters apiece and grouped into four line rhyming stanzas to make it easy to memorize. It is sung, much as children learning the Latin alphabet sing an "alphabet song." Along with the Three Character Classic and the Hundred Family Surnames, it has formed the basis of literacy training in traditional China. The first line is Tian di xuan huang () and the last line, Yan zai hu ye () explains the use of the grammatical particles "yan", "zai", "hu", and "ye". History There are several stories of the work's origin. One says that Emperor Wu of the Liang dynasty (r. 502–549) commissioned Zhou Xingsi (, 470–521) to compose this poem for his prince to practice calligraphy. Another says that the emperor commanded Wang Xizhi, a noted calligrapher, to write out one thousand characters and give them to Zhou as a challenge to make into an ode. Another story is that the emperor commanded his princes and court officers to compose essays and ordered another minister to copy them on a thousand slips of paper, which became mixed and scrambled. Zhou was given the task of restoring these slips to their original order. He worked so intensely to finish doing so overnight that his hair turned completely white. The Thousand Character Classic is understood to be one of the most widely read texts in China in the first millennium. The popularity of the book in the Tang dynasty is shown by the fact that there were some 32 copies found in the Dunhuang archaeological excavations. By the Song dynasty, since all literate people could be assumed to have memorized the text, the order of its characters was used to put documents in sequence in the same way that alphabetical order is used in alphabetic languages. The Buddhist Uyghur Kingdom of Qocho used the thousand character classic and the Qieyun and it was written that "In Qocho city were more than fifty monasteries, all titles of which are granted by the emperors of the Tang dynasty, which keep many Buddhist texts as Tripitaka, Tangyun, Yupuan, Jingyin etc." In the dynasties following the