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