#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;


int main(){
  string s;
  cin >> s;

  int n = 0;

  for(int i=0; i<size(s); i++){
    if(s[i] == '+'){
      n += 1;
    }else{
      n -= 1;
    }
  }

  cout << n << endl;
  return 0;
}
