San Franciscans get plenty of exercise and eat healthy food.
But certain "lifestyle choices" helped The City score decidedly average in a recent survey of California counties' overall health.
Out of 57 counties ranked -- Alpine County did not participate -- San Francisco rated 22nd, according to the 2014 County Health Rankings and Roadmaps report conducted by the University of Wisconsin Population Health Institute.
The state's wealthier coastal counties scored highest -- Marin is the state's healthiest place -- with the poorer inland counties faring worse.
City residents have more access to healthcare, better food choices and fewer people in poverty than the statewide average, the report found.
The City also has more physicians, doctors and mental health providers than nearly anywhere else in the state, and sees fewer teen births.
San Franciscans are exposed to more violent crime, deaths by injury -- such as pedestrian fatalities -- drug use and drinking than the average. The City's rate of sexually transmitted diseases is about 20 percent higher than the state average.
Perhaps predictably, The City has a concentration of HIV patients almost seven times the state average.