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

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