s = list(input())
cnt = []

for i in s:
    if i == "…":
        cnt.append("1")
    else:
        cnt.append("0")

t3a = [0] * len(s)
x = 0
for i, j in enumerate(map(int, cnt)):
    if j == 1:
        x += 1
    else:
        x = 0
    t3a[i] = x
print(max(t3a))