Whoever forms the next government will have to contend with Taliban militancy, endemic corruption, chronic power cuts and crumbling infrastructure in the nuclear-armed country of 180 million people. One of the first likely tasks will be to negotiate with the International Monetary Fund for a multi-billion-dollar bailout.