You need an embassy visa for South Africa if you have a Ukrainian passport
Visa options for South Africa
Visitor visa
Travellers need a visa to visit South Africa for Business or Tourism. A paper or embassy visa is the only visa available for travellers visiting South Africa. The visa is typically a stamp or sticker added to the passport. Travellers must obtain this visa from a local embassy, consulate or visa center before travelling.