def main(): S = input() p = "…" m = 0 cnt = 0 for i, j in enumerate(S): if j == p: cnt += 1 m = max(cnt, m) else: cnt = 0 print(m) if __name__ == "__main__": main()