Madagascar is governed under the constitution of 2010. The president, who is head of state, is elected by popular vote for a five-year term and is eligible for a second term. The government is headed by a prime minister, who is appointed by the president. There is a bicameral legislature, consisting of a Senate and National Assembly. Two thirds of the senators are selected by regional assemblies; the rest are appointed by the president. National Assembly deputies are popularly elected. All legislators serve five-year terms. Administratively, Madagascar is divided into 22 regions.