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