Input (grade 11): This sentence was commuted by King Frederick William III of Prussia to imprisonment for thirty years in a Prussian fortress.
Output (grade 7): King Frederick William III of Prussia changed this to imprisonment for thirty years.