import java.util.*;
 
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char[]ss = S.toCharArray();
 
        int pura=0;
        for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
}
             System.out.print(pura-(4-pura)); 	        
 	    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char[]ss = S.toCharArray();
 
        int pura=0;
        for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
}
             System.out.print(pura-(4-pura)); 	        
 	    }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char[]ss = S.toCharArray();
 
        int pura=0;
        for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
}
             System.out.print(pura-(4-pura)); 	        
 	    } main {
    
    Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char[]ss = S.toCharArray();
 
        int pura=0;
        for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
}
             System.out.print(pura-(4-pura)); 	        
 	    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[]ss = S.toCharArray(); ss S.toCharArray() S.toCharArray S int pura=0; pura 0 for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {               
            if(ss[i]=='+'){
             pura++;
}
} {               
            if(ss[i]=='+'){
             pura++;
}
} if(ss[i]=='+'){
             pura++;
} ss[i]=='+' ss[i] ss i '+' {
             pura++;
} pura++ pura System.out.print(pura-(4-pura)) System.out.print System.out System System.out pura-(4-pura) pura (4-pura) 4 pura String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char[]ss = S.toCharArray();
 
        int pura=0;
        for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
}
             System.out.print(pura-(4-pura)); 	        
 	    }
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char[]ss = S.toCharArray();
 
        int pura=0;
        for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
}
             System.out.print(pura-(4-pura)); 	        
 	    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char[]ss = S.toCharArray();
 
        int pura=0;
        for(int i=0; i<4; i++){               
            if(ss[i]=='+'){
             pura++;
}
}
             System.out.print(pura-(4-pura)); 	        
 	    }
}