/*
ID: richard124
PROB: kimbits
LANG: C++11
*/


#include <iostream>
#include <fstream>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <chrono>
#include <algorithm>
#include <bitset>

using namespace std;
using namespace std::chrono;

typedef pair<int, int> pii;
#define pb push_back;

string s;
int ans = 0;

int main() {
	high_resolution_clock::time_point t1 = high_resolution_clock::now();
	
	fin >> s;
	for (int i=0; i<4; i++) {
     if (s[i] == '+') {
      ans++; 
     }
      else {
       ans--; 
      }
    }
	cout << ans;

	
	high_resolution_clock::time_point t2 = high_resolution_clock::now();
	auto duration = duration_cast<nanoseconds>(t2-t1).count()/1000000000.0;
	cout << endl << "Execution time: " << duration << " seconds" << endl;
	return 0;
}