Input (grade 9): She was a doctor and a surgeon already in the 1820s, long before it was formally permitted for women in 1870.
Output (grade 6): She was a doctor and a surgeon long before it was permitted for women.