#include<bits/stdc++.h>

using namespace std;

int main(){

    char x[4];

    int ans = 0;

    for(int a = 0; a < 4; a++){

         cin >> x[a];

         if(x[a] == '+') ans++;

         else ans--;

     cout << ans << endl;

     return 0;
}
