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