if __name__ == "__main__": c = "…" s = input() n = 0 m = 0 for v in s: if v == c: m += 1 elif m > n: n = m m = 0 print(n)