text: According to legend, a courtier of this kingdom foretold that, at his death, his blood would flow white as milk and his decapitated head would fly to the top of a hill - those miracles, performed by the minister Ichadon, convinced the nobles to change their religion.
full_question: According to legend, a courtier of this kingdom foretold that, at his death, his blood would flow white as milk and his decapitated head would fly to the top of a hill - those miracles, performed by the minister Ichadon, convinced the nobles to change their religion. This kingdom's founder was said to be born after light shone down in a forest near a well, where a white horse bowed down and laid an egg, so it adopted a name translating as "Chicken Forest." A new code of law was issued by its king Pophung, who extended its borders by absorbing the Gaya confederacy. Its royal classes were known as seonggol and jingol, which mean "sacred bone" and the "true bone" respectively. It often shifted alliances between its neighbors, the Baekje and the Goguryeo, before conquering both and setting up a Unified dynasty in 668 CE. For 10 points, name this Korean kingdom which lasted until 935 when it was replaced by the Goryo.
first_sentence: According to legend, a courtier of this kingdom foretold that, at his death, his blood would flow white as milk and his decapitated head would fly to the top of a hill - those miracles, performed by the minister Ichadon, convinced the nobles to change their religion.
raw_answer: Kingdom of Silla [prompt on "Korea" or "Gyerim"]