#!/usr/bin/env python3 import re print(max([len(w) for w in re.split('[^…]', input())]))