Input (grade 13): Following the Peruvian War of Independence, it became the capital of the Republic of Peru.
Output (grade 12): And after the Peruvian War of Independence, it became the capital of the Republic of Peru.