4. San Francisco: $35,900 total cost for the first year. Photo: Brant Ward, The Chronicle / ONLINE_YES