Input (grade 10): It remained as a mosque until 1935, when it was converted into a museum by the Republic of Turkey.
Output (grade 6): It was made into a mosque in 1453 by the Turks and changed into a museum in 1935.