A flash of inspiration seems to strike more easily after a healthy dose of frustration.