The paradox of a nation coming out ahead as a result of its failure in a conflict is a challenging idea. But there are examples in history of devastated nations that have rebuilt themselves for the better.