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