#include #include #include #include #include #include #include #include #include #include using namespace std; #ifdef _WIN32 #include #endif int main() { #ifdef _WIN32 SetConsoleOutputCP(CP_UTF8); setvbuf(stdout, nullptr, _IOFBF, 1024); #endif int cnt, max1 = 0; string s, t; cin >> s; t = "…"; string::size_type pos = 0; while (s.begin() + pos != s.end()){ if (s.substr(pos, 3) == t){ cnt++; max1 = max(max1, cnt); } else cnt = 0; pos += 3; } cout << max1 << endl;; }