s=gets ans=0 for i in 0...s.size j=i while j<s.size&&s[j]=='…' do j+=1 end if ans<j-i then ans=j-i end end print ans