#include <bits/stdc++.h>
using namespace std;
int main() {
  char s;
  cin >> s;
  if ('s' == '++++') {
    cout << 4;
  } else if ('s' == '+-++' || 's' == '++-+' || 's' == '+++-' || 's' == '-+++') {
    cout << 2;
  } else if ('s' == '--++' || 's' == '-+-+' || 's' == '++--' || 's' == '+-+-') {
    cout << 0;
  } else if ('s' == '+---' || 's' == '-+--' || 's' == '--+-' || 's' == '---+') {
    cout << -2;
  } else if ('s' == '----') {
    cout << -4;
  }
  return 0;
}
