# -*- coding: utf-8 -*- s=gets.chomp s=s+"." a=0 d=0 n=s.length for i in 0..n-1 if s[i]=="…" d=d+1 else if a