#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; class utf8_string { std::vector str; int num_byte(const char &cc){ unsigned char c = static_cast(cc); if(c <= 0x7f) return 1; if(0xc0 <= c && c <= 0xcf) return 2; if(0xd0 <= c && c <= 0xdf) return 2; if(0xe0 <= c && c <= 0xef) return 3; if(0xf0 <= c && c <= 0xf7) return 4; if(0xf8 <= c && c <= 0xfb) return 5; return 6; } void init_str(const std::string &s){ for(size_t i=0; i=str.size()) break; ret += str[i]; } return ret; } }; int main(){ string str; cin >> str; string pat = "…"; utf8_string ustr(str); utf8_string upat(pat); int ret = 0; int now = 0; rep(i,ustr.length()){ if(ustr[i] == upat[0]){ now++; ret = max(ret, now); }else{ now = 0; } } cout << ret << endl; return 0; }