Given: two condoms, and three women any of whom may be carrying an STD.
You would like to have safe sex with each of them.
Question: describe algoritm how can you do so, while ensuring that no STD is passed from one woman (or possibly himself) to another (or to himself)?