Input (grade 13): South Africa has three capital cities: Cape Town, the largest of the three, is the legislative capital; Pretoria is the administrative capital; and Bloemfontein is the judicial capital.
Output (grade 8): The largest city is Johannesburg; the capitals are Cape Town, Pretoria, and Bloemfontein.