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