I live in San Francisco, so my Zip code (postal code) is 94107. But have you ever wondered where the 5 digits in your zip code come from? It turns out it's based on a hierarchical system: the initial 9 represents the western region of the US; the 5 represents the San Francisco area within that, and so on.