import sys import datetime read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines ans = 0 s = readline().decode().strip() cnt = 0 for c in s: if c == "…": cnt += 1 else: ans = max([ans, cnt]) cnt = 0 ans = max([ans, cnt]) print(ans)