s = input() i,ans = 0,0 while i < len(s): if s[i] == '…': ans += 1 i += 1 print(ans)