a=input() cnt=0 for i in len(a): if a[i]=='…': cnt+=1 else: print(cnt) sys.exit()