import re S = input() pat = re.compile(r'…+') ans = 0 for r in pat.findall(S): if ans < len(r): ans = len(r) print(ans)