#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
int main()
{
int i;
int ch;
char str[512];
fgets(str
, sizeof str
, stdin
);
for (i
= 0; i
<= (strlen(str
)); i
++) {
{
if(i && str[i-1]=='-') num *= -1;
i
+= ( num
==0 ) ? 1 : (int)log10(abs(num
))+1; }
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPGN0eXBlLmg+CiNpbmNsdWRlIDxtYXRoLmg+CiAKaW50IG1haW4oKQp7CiAgICBpbnQgaTsKICAgIGludCBjaDsKICAgIGNoYXIgc3RyWzUxMl07CiAgICBmZ2V0cyhzdHIsIHNpemVvZiBzdHIsIHN0ZGluKTsKIAogICAgZm9yIChpID0gMDsgaSA8PSAoc3RybGVuKHN0cikpOyBpKyspCiAgICB7CiAgICAgICAgaWYgKGlzZGlnaXQoc3RyW2ldKSkKICAgICAgICB7CiAgICAgICAgICAgIGludCBudW0gPSBhdG9pKCZzdHJbaV0pOwogICAgICAgICAgICBpZihpICYmIHN0cltpLTFdPT0nLScpIG51bSAqPSAtMTsKICAgICAgICAgICAgcHJpbnRmKCIlZFxuIiwgbnVtKTsKICAgICAgICAgICAgaSArPSAoIG51bT09MCApID8gMSA6IChpbnQpbG9nMTAoYWJzKG51bSkpKzE7CiAgICAgICAgfQogICAgfQogCiAgICByZXR1cm4gMDsKfQ==