災い転じて福となす (わざわいてんじてふくとなす) — to turn misfortune into fortune (esp. through one's own efforts) | Kumi Dictionary