S = list(input()) c = 0 mx = 0 for i in range(len(S)): if S[i] == "…": c += 1 if mx < c: mx = c elif S[i] != "…": c = 0 print(mx)