Dumb question but I'm just curious

Let's say you had sex and he came inside of you and your period came the day after. I know sperm can live 3-5 days in a women's body but what if your on your period will it still stay inside there or will it just die quickly