#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int i, sum = 0;
  std::string s;
  cin >> s;
  for (i = 0; s[i] != '\0'; i++) {
    if (s[i] == '+') sum++;
    if (s[i] == '-') sum--;
    cout << sum << endl;
  }
  cout << sum << endl;
  return 0;
}
