import re S = input() L = re.findall('…+', S) ans = 0 if len(L) == 0 else max([len(x) for x in L]) print(ans)