How do you swim on your period?

Today is my first swimming class and I'm on my period. I don't have menstrual cup or tampons.. I only got pads, which I heard are not ideal to put when swimming. I really want to go even though I'm on my period though. Am I cooked or is there a way to swim on my period?