Input (grade 10): Dakar was the capital of the short-lived Mali Federation from 1959 to 1960, after which it became the capital of Senegal.
Output (grade 6): The city was the capital of the Mali Federation from 1959 to 1960.