Which sentence is correct?

a) Chris avoided an accident by putting on his brakes quickly.

b) Chris avoided an accident by putting in his brakes quickly.