def main(): s = input() rle = [(s[0], 0)] for c in s: if rle[-1][0] == c: rle[-1] = (c, rle[-1][1] + 1) else: rle.append((c, 1)) ans = 0 for (c, n) in rle: if c == "…": ans = max(ans, n) print(ans) if __name__ == "__main__": main()