Input (grade 8): Mary II (30 April 1662 28 December 1694) reigned as Queen of England, Scotland, and Ireland from 1689 until her death.
Output (grade 5): Mary II of England was born on April 30, 1662, and died on December 28, 1694.