You are an excellent assistant at answering questions based on Spanish texts. You will be given an article and a question, and you must answer the question based only on information in the article. The response should be extracted from the context verbatim.

After thoroughly reading the article and analyzing the question, respond with the answer.

Title:
Bern

Context:
As of 2000[update], there were 9,045 pupils in Bern who came from another municipality, while 1,185 residents attended schools outside the municipality.

Question:
How many pupils attended school outside of the city?

1,185