#include <bits/stdc++.h>
using namespace std;
const int N = 4;
int main(void) {
  int ans = 0;
  for (int i = 0; i < N; i++) {
    char c;
    scanf("%c", &c);
    if (c == '+')
      ans++;
    else if (c == '-')
      ans--;
  }
  printf("$d\n", ans);
  return 0;
}
