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

int main(void){
  int ans = 0;
  string eat;
  cin >> eat;
  for(int i=0;i<eat.length();i++){
    if(eat[i] == '+') cnt++;
    else cnt--;
  }
  cout << cnt << endl;
  
  return 0;
}