#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
inline int D() {
  int m;
  cin >> m;
  return m;
}
inline long long lD() {
  long long m;
  cin >> m;
  return m;
}
inline double dD() {
  double m;
  cin >> m;
  return m;
}
int arr[100005];
int main() {
  fast();
  string s;
  cin >> s;
  int c = 0;
  for (int i = 0; i < 4; ++i)
    if (s[i] == '+')
      c++;
    else
      c--;
  cout << c << "\n";
}
