# coding: utf-8 s = gets.chop count = 0 ans = 0 for i in 0...s.size if s[i] == '…' count += 1 else if count > 0 if ans < count ans = count count = 0 end end end end if ans < count ans = count end print ans,"\n"