South Africa qualify