Input (grade 10): Aqa Ali Shah became Imam of the Ismailis upon the death of his father in 1881, also inheriting his father's title of Aga Khan.
Output (grade 4): Aqa Ali Shah became Imam of the Ismailis when his father died in 1881,. He also got his father's title of Aga Khan.