#include <stdio.h>
 
         
        int main(void){
            int  i = 0;
           char buf[];
           scanf("%s", &buf);
           
           while(i <= 3){
            switch(buf[i]){
                case '+': num = num+1; break;
                case '-': num = num-1; break;
            }
            i++;
           }
           printf("%d\n", num);
           return 0;
        } 