Condoms

When is a good time to change the condom to a new one? And do they protect against STD?