#include <iostream>
#include <string>
#include <locale>
#include <codecvt>

using namespace std;

int main(){
  string s;
  cin >> s;

  wstring_convert<codecvt_utf8<char32_t>, char32_t> converter;
  u32string res = converter.from_bytes(s);

  int i, cnt=0, max=0;
  for (i=0; i<res.size(); i++) {
    if (res[i]==u'…') {
      cnt++;
      if (cnt>max) max=cnt;
    } else {
      cnt=0;
    }
  }

  cout << max << endl;
	return 0;
}