#include <bits/stdc++.h>
using namespace std;

int main() {
  vector<char> s(10);
  cin>> s;
  int pcount=0;
  int mcount=0;
  for(int i=0;i<4;i++){
    if(s.at(i) == '+')pcount++;
    else(s.at(i) == '-')mcount++;
  }
  cout << pcount + mcount << endl;
}
