Input (grade 10): He was sentenced to death by hanging, but committed suicide by cyanide ingestion the night before he was due to be hanged.
Output (grade 6): One day before he was to be hanged, he committed suicide by taking a tablet of cyanide.