The country had to borrow $360bn from the International Monetary Fund and other members of the eurozone.