import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[4];
        int ans = 0;
        
        for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        }
        
        System.out.println(ans);
        
        
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[4];
        int ans = 0;
        
        for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        }
        
        System.out.println(ans);
        
        
	}
} Main public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[4];
        int ans = 0;
        
        for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        }
        
        System.out.println(ans);
        
        
	} main {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[4];
        int ans = 0;
        
        for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        }
        
        System.out.println(ans);
        
        
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String boxstr[] = new String[4]; boxstr new String[4] 4 int ans = 0; ans 0 for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        } int i = 0; int i = 0; i 0 i<4 i 4 i++ i++ i {
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        } {
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        } boxstr[i] = String.valueOf(line.charAt(i)) boxstr[i] boxstr i String.valueOf(line.charAt(i)) String.valueOf String line.charAt(i) line.charAt line i if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            } boxstr[i].equals("+") boxstr[i].equals boxstr[i] boxstr i "+" {
            	ans ++;
            } ans ++ ans {
            	ans --;
            } ans -- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[4];
        int ans = 0;
        
        for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        }
        
        System.out.println(ans);
        
        
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[4];
        int ans = 0;
        
        for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        }
        
        System.out.println(ans);
        
        
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[4];
        int ans = 0;
        
        for(int i = 0;i<4;i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            if(boxstr[i].equals("+")){
            	ans ++;
            }else{
            	ans --;
            }
        	
        }
        
        System.out.println(ans);
        
        
	}
}