Better still, don't put on sunscreen when you're about to go into the water. The sea just washes it off, even the so called "waterproof" ones, and it goes straight onto the reef. Put it on after you've come out.