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