Input (grade 2): Ernst I died in 1844. His elder son and successor, Ernst II, ruled until his own death in 1893.
Output (grade 6): Ernst I died in 1844 and his elder son and successor, Ernst II, ruled until he died in 1893.