#include <iostream>
#include <string>
#include <ios>
#include <iomanip>
using namespace std;
int main(void){
  string a;
  cin >> a;
  
  int n = a.length();
  
  int ans = 0;
  
  for(int i=0;i<n;i++){
    if(a[i] == '+')
      ans++;
    else
      ans--;
  }
  
  cout << ans << endl;
  
  reurn 0;
}

  