new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n