#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
int main() {
  string S;
  int ans = 0;
  cin >> S;
  for (int i = 0; i < (int)(S.size()); i++) {
    if (S[i] == '+')
      ans++;
    else
      ans--;
  }
}
