import sys s = input() ans = 0 now = 0 for i in range(len(s)): if s[i] == "…": now += 1 ans = max(ans, now) else: now = 0 print(ans)