How top CEOs turned adversity into an advantage