How to survive a bear encounter (and what to do if it all goes wrong