Input: What is the rank of the gymnast from the country whose capital and largest city is Sofia ?
Output: 6