s = input() m = 0 n = 0 for i in s: if i == "…": n += 1 m = max(n, m) else: n = 0 print(m)