Input (grade 7): In the Middle Ages, it was instead an important port of Pisa's Republic.
Output (grade 6): In the Middle Ages, it was an important port of Pisa's Republic.