#include using namespace std; int main(void) { string s; cin >> s; int ans = 0, sz = s.size(), l = 0, r = 0; while (l < sz) { while (l < sz && s.substr(l, 3) != "…") l += 3, r += 3; while (r < sz && s.substr(r, 3) == "…") r += 3; ans = max(ans, (r - l) / 3); l = r; } cout << ans << endl; return 0; }