import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int plus = 0;
        int minus = 0;
        String a = sc.nextLine();
        char[] b = a.toCharArray();
        for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        }
        System.out.println(plus - minus);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int plus = 0;
        int minus = 0;
        String a = sc.nextLine();
        char[] b = a.toCharArray();
        for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        }
        System.out.println(plus - minus);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int plus = 0;
        int minus = 0;
        String a = sc.nextLine();
        char[] b = a.toCharArray();
        for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        }
        System.out.println(plus - minus);
    } main {
        Scanner sc = new Scanner(System.in);
        int plus = 0;
        int minus = 0;
        String a = sc.nextLine();
        char[] b = a.toCharArray();
        for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        }
        System.out.println(plus - minus);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int plus = 0; plus 0 int minus = 0; minus 0 String a = sc.nextLine(); a sc.nextLine() sc.nextLine sc char[] b = a.toCharArray(); b a.toCharArray() a.toCharArray a for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        } int i = 0; int i = 0; i 0 i < a.length() i a.length() a.length a i++ i++ i {
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        } {
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        } if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            } b[i] == '+' b[i] b i '+' {
                plus++;
            } plus++ plus if(b[i] == '-'){
                minus++;
            } b[i] == '-' b[i] b i '-' {
                minus++;
            } minus++ minus System.out.println(plus - minus) System.out.println System.out System System.out plus - minus plus minus String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int plus = 0;
        int minus = 0;
        String a = sc.nextLine();
        char[] b = a.toCharArray();
        for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        }
        System.out.println(plus - minus);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int plus = 0;
        int minus = 0;
        String a = sc.nextLine();
        char[] b = a.toCharArray();
        for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        }
        System.out.println(plus - minus);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int plus = 0;
        int minus = 0;
        String a = sc.nextLine();
        char[] b = a.toCharArray();
        for(int i = 0; i < a.length(); i++){
            if(b[i] == '+'){
                plus++;
            } else if(b[i] == '-'){
                minus++;
            }
        }
        System.out.println(plus - minus);
    }
}
