As of 2000[update], there were <answer>9,045</answer> pupils in Bern who came from another municipality, while 1,185 residents attended schools outside the municipality.
How many pupils lived in another municipality?
9,045