You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you will be presented with a question and you have to answer the question based on your knowledge. Your answers should be as short as possible.

Who were the builders of the mosque in Herat with fire temples ?
Solution: Ghurids
Why? This is a good example. Ghurids were the builders of the mosque in Herat with fire temples.

New input: What is the rank of the gymnast from the country whose capital and largest city is Sofia ?
Solution:
6