who was the third president of south africa