#include #include int main(void) { unsigned char str[128]; unsigned char *p; unsigned char *pr; int cnt = 0; int max = 0; scanf("%s", str); p = str; while( *p != '\0' ) { if( ( *p == 0xe2 ) && ( *(p+1) == 0x80 ) && ( *(p+2) == 0xa6 ) ) { cnt++; if( max < cnt ) max = cnt; p += 3; } else { cnt = 0; p++; } } printf("%d\n", max); return 0; }