Input (grade 7): The musket replaced the arquebus, and was in turn replaced by the rifle.
Output (grade 7): The musket is the weapon that replaced the arquebus, and was then replaced by the rifle.