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 8): King King Frederick William III of Prussia changed this to imprisonment for thirty years.