str=input() a=m=0 for c in str: if c=='…':a+=1 else: a=0 m=max(m,a) print(max(m,a))