#include #include #include #include #include #include using namespace std; int main(int argc, const char* argv[]) { string S; cin >> S; std::wstring_convert, char16_t> cv; std::u16string u16S = cv.from_bytes(S); int maxCnt = 0; int cnt = 0; for (auto&& u16 : u16S) { if (u16 == u'…') { cnt++; } else { maxCnt = max(maxCnt, cnt); cnt = 0; } } maxCnt = max(maxCnt, cnt); cout << maxCnt << endl; return 0; }