#include #include #include using namespace std; int main(int argc, char *argv[]) { string s; cin >> s; int ans = 0; int c = 0; for (int i = 0; i < (int)s.length() - 1; ++i) { if (s[i] == -127 && s[i + 1] == 99) { ++c; ++i; ans = max(ans, c); } else { c = 0; } } cout << ans << endl; return 0; }