#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int ans = 0;
  if (s[0] == '+')
    ans++;
  else if (s[0] == '-')
    ans--;
  if (s[1] == '+')
    ans++;
  else if (s[1] == '-')
    ans--;
  if (s[2] == '+')
    ans++;
  else if (s[2] == '-')
    ans--;
  if (s[3] == '+')
    ans++;
  else if (s[3] == '-')
    ans--;
  return 0;
}
