s=gets s.size.downto(0).each{|i| if nil!=s.index("…"*i) p i exit 0 end }