In semi-presidential systems, the head of government may answer to both the head of state and the legislature with the specifics provided by each country's constitution. A modern example is the present French government, which originated as the French Fifth Republic in 1958. In France, the president, the head of state, appoints the prime minister, who is the head of government. However, the president must choose someone who can act effectively as an executive, but who also enjoys the support of the France's legislature, the National Assembly, to be able to pass legislation. In some cases, the head of state may represent one political party but the majority in the National Assembly is of a different party. Given that the majority party has greater control over state funding and primary legislation, the president is in effect forced to choose a prime minister from the opposition party to ensure an effective, functioning legislature. In this case, known as cohabitation, the prime minister, along with the cabinet, controls domestic policy, with the president's influence largely restricted to foreign affairs.