import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]s = S.toCharArray();
 
        int purasu=0;   
        for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
}
        int mainasu = 4-purasu;
        
    System.out.println(purasu-mainasu);
      }
} 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[]s = S.toCharArray();
 
        int purasu=0;   
        for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
}
        int mainasu = 4-purasu;
        
    System.out.println(purasu-mainasu);
      }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]s = S.toCharArray();
 
        int purasu=0;   
        for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
}
        int mainasu = 4-purasu;
        
    System.out.println(purasu-mainasu);
      } main {
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]s = S.toCharArray();
 
        int purasu=0;   
        for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
}
        int mainasu = 4-purasu;
        
    System.out.println(purasu-mainasu);
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[]s = S.toCharArray(); s S.toCharArray() S.toCharArray S int purasu=0; purasu 0 for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            if(s[i]=='+'){
                purasu++;               
            }
} {
            if(s[i]=='+'){
                purasu++;               
            }
} if(s[i]=='+'){
                purasu++;               
            } s[i]=='+' s[i] s i '+' {
                purasu++;               
            } purasu++ purasu int mainasu = 4-purasu; mainasu 4-purasu 4 purasu System.out.println(purasu-mainasu) System.out.println System.out System System.out purasu-mainasu purasu mainasu String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]s = S.toCharArray();
 
        int purasu=0;   
        for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
}
        int mainasu = 4-purasu;
        
    System.out.println(purasu-mainasu);
      }
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]s = S.toCharArray();
 
        int purasu=0;   
        for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
}
        int mainasu = 4-purasu;
        
    System.out.println(purasu-mainasu);
      }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]s = S.toCharArray();
 
        int purasu=0;   
        for(int i=0; i<4; i++){
            if(s[i]=='+'){
                purasu++;               
            }
}
        int mainasu = 4-purasu;
        
    System.out.println(purasu-mainasu);
      }
}
