India skipper Virat Kohli was a picture of patience and perseverance in his well-crafted 79 but South Africa gained the upper hand by bowling out the visitors for an underwhelming 223 on day one of the series-deciding third and final Test in Cape Town on Tuesday.