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