import re print(max(len(i) for i in re.split('[^…]',input())))