#include <stdio.h>
#include <iostream>

int main() {
	string s;
  std::cin >> s;
int cur = 0;  
  for(auto itr : s){
	if(itr == '+') cur++;
    else cur--;
  }
  
  std::cout << cur << endl;
 return 0; 
}
