Input (grade 13): He entered the École Polytechnique in 1887 but the following year was diagnosed with tuberculosis and had to spent six months recuperating in Algeria.
Output (grade 10): However, he had tuberculosis and had to spent six months getting better in Algeria.