while""do s=io.read()t=table for n=0,9 do t[n+1]=#s:gsub(n,"")-#s end t:sort()print((t:concat("-"):gsub("-+0*","")))end