Input (grade 12): Her mother died in 1671, and her father remarried in 1673, taking as his second wife the Catholic Princess Mary of Modena, who was only four years older than Mary.
Output (grade 4): Mary's mother died in 1671, and her father married again in 1673. He took Mary of Modena, a Catholic, as his second wife.