#include #define PI 3.14159265359 #define NIL -1 using namespace std; const int64_t MOD = 1e9 + 7; int main() { string S; cin >> S; //cout << S << endl; vector v; for (int i = 0; i < S.size(); i++) { char ch = S.at(i); int n = (int)ch; //cout << n << endl; v.push_back(n); } int cnt = 0; int MAX = 0; for (int i = 0; i < v.size()-1; i+=2) { int a, b; a = v.at(i); b = v.at(i + 1); if ((a == -127) && (b == 99)) { cnt++; } else { if (cnt > MAX) MAX = cnt; cnt = 0; } } cout << cnt << endl; }