#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; //-------------------------- int main() { string s; string ss = "…"; cin >> s; int max = 0; int ans = 0; int i = 0; while (i < s.size()-2) { if ((int)s[i] == -127 && (int)s[i+1] == 99) { ans++; i += 2; } else { if (max < ans) max = ans; ans = 0; i++; } } if (max < ans) max = ans; i = 1; while (i < s.size() - 2) { if ((int)s[i] == -127 && (int)s[i + 1] == 99) { ans++; i += 2; } else { if (max < ans) max = ans; ans = 0; i++; } } if (max < ans) max = ans; cout << max << endl; return 0; }