s = input() seq = 0 ans = 0 for ss in s: if ss == "…": seq += 1 else: seq = 0 ans = max(ans, seq) print(ans)