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