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

int main() {
  int ans = 0;
  for (int i = 0; i < 4; i++){
    char c;
    cin >> c;
    
    if (char = '+') {
      ans++;
    } else {
      ans--;
    }
  }
  
  cout << ans << endl;
}