#include using namespace std; int main() { string S; cin >> S; int N = S.size(); int ans = 0; int len = 0; for( int i = 0; i < N - 2; i++ ) { int a = S[i] & 0xff; int b = S[i + 1] & 0xff; int c = S[i + 2] & 0xff; if( a == 0xe2 && b == 0x80 && c == 0xa6 ) { len++; i += 2; } else len = 0; ans = max( ans, len ); } cout << ans << endl; }