Educate the children, and it won't be necessary to punish men.
The principle goal of education is to create men who are capable of doing new things, not simply repeating what other generations have done.