Input (grade 12): He was arrested in 1897 for demonstrating against the Japanese monarchy, being subsequently released in 1904 and going to the United States.
Output (grade 5): He was arrested in 1897 for demonstrating against the monarchy. After he was released in 1904 he went to the United States.