#include <iostream>
#include <string.h>
using namespace std;
int main() {
char s[128]="1-2,5-6";
char z[128] = {0};
int m =0;
cout << s << endl;
cout << strlen(s) << endl;
for (int i=0,j =0; i < 8; )
{
cout << "tttttttttttttttt"<< endl;
cout << s[j] << endl;
if (s[j] == '-')
{
while (s[j+1] != '0'+i) {
i++;
}
i++;
j=j+2;
} else if (s[j] == ',') {
j++;
cout << ",,,,,,,"<< endl;
} else if (s[j] == '0'+i) {
i++;
j++;
} else {
z[m++]='0'+i;
z[m++]=',';
i++;
}
}
z[strlen(z) - 1] = '\0';
cout << z << endl;
cout << "Hello world! - cpp.jsrun.net." << endl;
return 0;
}