s = input() lst = [-1] + [i for i in range(len(s)) if s[i] != "…"] + [len(s)] ans = 0 for i in range(len(lst) - 1): ans = max(ans, lst[i + 1] - lst[i] - 1) print(ans)