Task: Text Categorization
Input (English): After struggling with Gruffydd ap Llewellyn for two years, he overran Wales with his army. Despite allegiances he had sworn after being shipwrecked, he accepted the witenagemot's election of him as king. He was promptly forced to put down an attempted led by the Norwegian king Hardraada and his own brother Tostig, which he did successfully at Stamford Bridge. However, in less than a month he took an arrow through the eye at Senlac Hill and was dead. FTP, name this man who briefly rules as king of England before he was defeated at Hastings by William the Conqueror's forces.
Output (English): History