MS Dhoni hit a quick 27 in India v South Africa, Champions Trophy Group B at Sophia Gardens in Cardiff on Thursday.