#include <bits/stdc++.h>
using namespace std;

int main(){
  
  string a;
  int  i,x = 0;
  cin >> a;
  
  if(a.at(i) == "+"){
    x++;
  }
  
  else if (a.at(i) == "-"){
    x--;
  }
    
  cout << x << endl;
  
}


