A fall into the pit, a gain in your wit.

吃一堑,长一智。