Task: Text Categorization
Input (English): One of their rulers, Koshkadam, got into a dispute with their northern neighbor over the succession to the throne of Karaman, resulting in an invasion which Kait Bey had to repel in order to save the Burji dynasty, while their earlier Bahri dynasty had been victorious at the Battle of Homs against their eastern neighbor. Another ruler, Kansuh, was defeated at the climactic battle of al-Riddaneah, where their power was broken forever. They first came to power under Qutuz, but he was displaced by the man who had defeated the Seventh Crusade and won the Battle of Ayn Jault against Hulagu Khan, Sultan Baybars. For ten points, name this group of Turkish slaves who became rulers of Egypt.
Output (English): History