def main(): s = input() ans = 0 cont = 0 for c in s: if ord(c) == 8230: cont += 1 else: cont = 0 ans = max(ans, cont) print(ans) if __name__ == "__main__": main()