Task: Text Categorization
Input (English): This ruler's chief minister, Georg Heinrich von Gortz, became hated for debasing his nation's  currency through the issuing of copper tokens. This ruler manipulated the Ottoman Sultan Ahmed III  into an unpopular war with Russia, therefore making himself the target of an uprising called the  "kalabalik." He was killed while besieging the fortress of Fredriksten, after which his army was  decimated by a brutal winter while making this ruler's namesake "Death March." After two early  victories, he forced (*) Frederick IV and Augustus the Strong to sign the Treaties of Travendal and  Altranstadt, respectively, but he is perhaps best known for a crushing defeat he suffered after allying  himself with the Cossack Hetman Ivan Mazepa. For 10 points, name this loser of the Battle of Poltava,  who ruled as King of Sweden for much of the Great Northern War.
Output (English): History