How do you escape a shark attack?

It is said that you can escape a shark attack by punching it in the gills. I'm not sure if it is true though.

It is actually said that the best way to escape an attack fom a shark is that you punch it on the nose because that is its weakest spot.