S = input() t = "…" res = 0 cnt = 0 i = 0 while i < len(S): cnt = 0 if S[i] == t: cnt += 1 while i + 1 < len(S) and S[i] == t and S[i] == S[i + 1]: i += 1 cnt += 1 res = max(res, cnt) i += 1 print(res)