What is the version of the following sentence with correct punctuation?

When a boat is penalized a third or subsequent time during the regatta she shall promptly retire
When a boat is penalized a third or subsequent time during the regatta, she shall promptly retire.