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

int n = 0;

int main(){
  int i;
  cin>> str >>endl;
  for(i=0,i<4,++i){
    if(str[i] == "+") ++n;
    else if(str[i] == "-") --n;
  }
  cout<< n <<endl;
  return 0;
}
  