#include<iostream>
#include<algorithm>
#include<vector>
#include<map>
#include<string>


long long  INF=1000000000000000000;
long long mod=1000000007;
using namespace std;


int main(){
string s;
 long long ans=0;
  for(int i=0;i<N;i++){
   if(s[i]=="-")ans++;
    else ans--;
  }
  cout<<ans<<endl;
 return 0;
}
/*

*/