print(max(len(p) for p in "".join(str(i) if e=="…" else "/" for i,e in enumerate(input())).split("/")))