Although the President is formally the Commander-in-Chief of the Armed Forces, signs treaties, represents Latvia abroad, and officially appoints ambassadors and other key officials, these powers are constitutionally exercised on the binding advice of the Prime Minister, who is politically responsible for them (Constitution of Latvia, Article 53). The President does, however, have personal discretion over the proposal of legislation to the Parliament, vetoing legislation, calling referendums on legislation, and nominating the Prime Minister. The President also has the right, "in extremis", to call a referendum on the premature dissolution of Parliament: if the referendum is passed, Parliament is dissolved; but if the referendum fails, the President must resign.