Input (grade 13): Ecuador is a presidential republic and became independent in 1830, after having been part of the Spanish colonial empire and the republic of Gran Colombia.
Output (grade 2): Ecuador was part of the Spanish Empire.