Input (grade 12): With the concurrence of her father, George had Sophia Dorothea imprisoned in the Castle of Ahlden in her native Celle, where she stayed until she died more than thirty years later.
Output (grade 11): Sophia Dorothea's father, George William, and George Louis, had Sophia Dorothea imprisoned in Ahlden Castle in Celle, forbidden to see her father, former husband, or children.