Task: Text Categorization
Input (English): After centuries of revolts, such as the Thokoly Uprising, limited autonomy for what is now this country was guaranteed in the Augsleich.This country's Nazi puppet government was led by the Arrow Cross Party, and in 1919 it was briefly led by the Soviet-style government of Bela Kun. Much of its territory was lost in the Treaty of Trianon, and under Imre Nagy (NAJ), this nation made a failed attempt to leave the Warsaw Pact in 1956. The medieval ancestor of this modern-day country was founded by Stephen I, leader of the Magyars. FTP, name this country which was nominally joined with Austria before World War I.
Output (English): History