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