#include <bits/stdc++.h>
using namespace std;
int main() {
  int ans = 0;
  char c;
  for (auto i = 0; i < 4; i++) {
    cin >> c;
    cout << c;
    if (c == '+') {
      ans++;
    } else {
      ans--;
    }
  }
  cout << ans << endl;
  return 0;
}
