Instructions: In this task you will be given a text passage from a trivia quiz. You should choose the category this question belongs to from these categories: History, Science, Social Science, Fine Arts, Literature. You can only choose one category, so if in doubt, please choose the closest match.
Input: 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:
History