import re s = input() arr = re.findall("…+", s) ma = 0 for v in arr: ma = max(ma, len(v)) print(ma)