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

int main(){
  String S;
  int cnt = 0;
  cin >> S;
  for(int i=0;i<4;i++){
    if(S[i]=='+')cnt++;
    if(S[i]=='-')cnt--;
  }
  cout << cnt << endl;
}