Output the list correctly