#include #include #include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int ans = 0, temp_ans = 0; int pos = 0,next_pos = 0; int len = 0; string str; cin >> str; while ((next_pos = (str.find("…",pos))) != string::npos) { if (next_pos - pos == 1) { temp_ans++; pos = next_pos + 1; } else { ans = max(ans, temp_ans); temp_ans = 1; pos = next_pos + 1; } } ans = max(ans, temp_ans); cout << ans << endl; return 0; }