<Tr> <Td> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> </Td> </Tr> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> <P> The Republic of South Africa is a parliamentary representative democratic republic . The President of South Africa serves both as head of state and as head of government . The President is elected by the National Assembly (the lower house of the South African Parliament) and must retain the confidence of the Assembly in order to remain in office . South Africans also elect provincial legislatures which govern each of the country's nine provinces . </P> <P> Since the end of apartheid in 1994 the African National Congress (ANC) has dominated South Africa's politics . The ANC is the ruling party in the national legislature, as well as in eight of the nine provinces (Western Cape is governed by the Democratic Alliance). The ANC received 62.15% of the vote during the 2014 general election . It had received 62.9% of the popular vote in the 2011 municipal election . The main challenger to the ANC's rule is the Democratic Alliance, led by Mmusi Maimane (previously by Helen Zille), which received 22.23% of the vote in the 2014 election . Other major political parties represented in Parliament include the Economic Freedom Fighters and the Inkatha Freedom Party, which mainly represents Zulu voters . The formerly dominant New National Party, which both introduced and ended apartheid through its predecessor the National Party, disbanded in 2005 to merge with the ANC . Jacob Zuma served as President of South Africa since May 9, 2009 until his resignation in February 2018 . Zuma was replaced by Cyril Ramaphosa . The country's next general election will be held in 2019 . </P>

Is south africa a presidential or parliamentary system
find me the text answering this question