Input (grade 12): Reuniting the eastern and western portions of the empire, Theodosius was the last emperor of both the Eastern and Western Roman Empire.
Output (grade 10): He reunited the Eastern and Western Roman Empire, but was the last emperor of both parts of the empire.