s = input() import re a=re.findall(r'…+',s) if a == []: print(0) else: print(max([len(c) for c in a]))