Task: Text Categorization
Input (English): Magnus Barefoot saved this kingdom by stumbling into an uprising and inadvertently shooting Hugh Montgomery's eye. This kingdom's lore appears in the Red and White Books of Hergest. It was traditionally divided into commotes. Eleanor de Montfort was captured by pirates en route to this kingdom, forcing its ruler to sign the Treaty of Aberconwy. Its eastern border was governed by the Marcher Lords, and it lies west of (*) Offa's Dyke. Powys and Dyfed are sub-kingdoms within this country, where a rebel known as "the Last" lost to Edward Longshanks. Henry V subjugated Owen Glendower here. For 10 points, name this kingdom whose pre-Anglo-Saxon peoples were once led by Llywelyn the Great, whose namesake prince is the crown prince of the United Kingdom.
Output (English): History