S = input() ans = 0 i = 0 while i < len(S): j = i while j < len(S) and S[j] == "…": j = j + 1 ans = max(ans, j - i) i = max(i + 1, j) print(ans)