Input (grade 10): He returned to Spain in 1826, but, despite a warm welcome, he returned in ill health to Bordeaux, where he died in 1828 at the age of 82.
Output (grade 8): For two years Goya lived in France but returned to Spain where he was warmly welcomed home in 1826, He died in 1828 at the age of 82.