import re S = input() ans = max(len(s) for s in re.findall('…+', S)) print(ans)