#include <bits/stdc++.h>
using namespace std;
using namespace std::chrono;
string s;
int ans = 0;
int main() {
  high_resolution_clock::time_point t1 = high_resolution_clock::now();
  cin >> s;
  for (int i = 0; i < 4; i++) {
    if (s[i] == '+') {
      ans++;
    } else {
      ans--;
    }
  }
  cout << ans;
  high_resolution_clock::time_point t2 = high_resolution_clock::now();
  auto duration = duration_cast<nanoseconds>(t2 - t1).count() / 1000000000.0;
  cout << endl << "Execution time: " << duration << " seconds" << endl;
  return 0;
}
