South African President resigns.