#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;

int main(){
  string s;
  int count = 0;
  cin >> s;
  rep(i,s.size()){
    if(s == '+')count++;
    else count--;
  }
  cout << count << endl;
}
z
