#include using namespace std; int main() { int i; int iMax; int iCnt; char S[ 500 ]; char C; cin >> S; iMax = 0; iCnt = 0; i = 0; while( ( C = S[ i ] ) != '\0' ) { if( C == 0xE2 ) { if( S[ i + 1 ] == 0x80 && S[ i + 2 ] == 0xA6 ) { i += 2; iCnt++; if( iMax < iCnt ) iMax = iCnt; } else iCnt = 0; } else iCnt = 0; i++; } cout << iMax << endl; return 0; }