#include <iostream>
#include <string>
using namespace std;

int main() {
    char s;
    int res = 0;
    for(i=0; i<4; i++){
      cin >> s;
      if(a=='+') res++;
      else res--;
    }
    cout << res << endl;
}