from itertools import groupby as gb ans = max(map(lambda x:len(list(x[1])),filter(lambda x:x[0] == "…",gb(input())))) print(ans)