Here's a solution based on my answer to question #825783:
Stylesheet
,
Input
Using the input provided by JLRishe:
"555"
"666"
"555"
"565"
"575"
"595"
Output
This is different from JLRishe's output because I understood the requirement differently:
"555" , "666" , "595"
"555" , "565" , "575"