Input (grade 7): The fort was taken and held by the Maharajas of Jammu and Kashmir until 1947.
Output (grade 5): The fort was taken and held by the Maharajas until 1947.