Complex sentence: It was the last encyclical drafted by John XXIII; he was suffering from cancer when he drafted it and died two months after its completion.
Split into simpler sentences: It was the last encyclical drafted by John XXIII. He died two months after its completion.