Greece emerges from eurozone bailout programme

But repaying loans will take several decades after the biggest bailout in global financial history.