Input (grade 12): De Valera was court-martialled, convicted, and sentenced to death, but the sentence was immediately commuted to penal servitude for life.
Output (grade 10): After the fighting de Valera was court-martialled, convicted, and sentenced to death, but the sentence was changed to for life imprisonment.