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