#include <iostream>
#include <iostream>

using namespace std;

int main(){
  char drip;
  string S;int sum = 0;
  for (int i  = 0;i < 4;i++){
    drip = S.substr(i,1)
    if (drip == '-'){
      sum -= 1;
    }else{
      sum += 1;
    }
  }
}
