
#include<cmath>
#include<iostream>
#include<algorithm>
#include <string>
#include <stdexcept>
using namespace std; 
int main(){
  char t[4]
 long long int a,b[120],c=0,d,e; 
 	cin >>t;
  for(int i=0;i<4;i++){
   if(t[i]=='-')c-=1;
    else c+=1;
  }
  cout <<c;
}