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