a=input() cnt=0 b=true for i in range(len(a)): if a[i]=='…': cnt+=1 else: print(cnt) b=false break if b==true: print(cnt)