There were three parts to the rule of the Austro-Hungarian Empire : Hungary and Austria maintained separate parliaments each with its own prime minister .
Hungary and Austria had different parliaments .