#include <bits/stdc++.h>
using namespace std;
char s[10];
int main() {
  gets(s);
  int ans = 0, n = strlen(s);
  for (int i = 0; i < n; i++)
    if (s[i] == '+')
      ans++;
    else
      ans--;
  printf("%d", ans);
}
