#include <iostream>
#include <string>
using namespace std;
int main(){
  int ans = 0;
  string s; cin >> s;
  for(int i = 0;i < 4; i++){
    if(s.substr(i,1) = "+"){
      ans++;
    }else{
      ans--;
    }
  }
  cout << ans << endl;
}