# -*- coding: utf-8 -*- import sys import codecs import re sys.stdin = codecs.getreader('utf_8')(sys.stdin) sys.stdout = codecs.getwriter('utf_8')(sys.stdout) A = raw_input() result = re.findall(ur"…+", A) if len(result) > 0: print max(map(lambda s: len(s), result)) else: print 0