Input (grade 8): She lived in the old Italian Legation which had been converted into flats for the leading "foreign friends".
Output (grade 7): She lived in the old Italian Legation which had been changed into flats for the leading "foreign friends".