import itertools L = list(input()) A = [0] for k, g in itertools.groupby(L): if k == "…": A.append(len(list(g))) print(max(A))