Why Rep. Giffords was able to survive being shot in the head

What does it take to survive a gunshot wound to the head? Mostly luck.