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