Please answer the following question: Given the following passage  "Valencia (/vəˈlɛnsiə/; Spanish: [baˈlenθja]), or València (Valencian: [vaˈlensia]), is the capital of the autonomous community of Valencia and the third largest city in Spain after Madrid and Barcelona, with around 800,000 inhabitants in the administrative centre. Its urban area extends beyond the administrative city limits with a population of around 1.5 million people. Valencia is Spain's third largest metropolitan area, with a population ranging from 1.7 to 2.5 million. The city has global city status. The Port of Valencia is the 5th busiest container port in Europe and the busiest container port on the Mediterranean Sea.",  answer the following question. Note that the answer is present within the text.  Question: What county are Madrid and Barcelona located in?
Answer:
Spain