import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("");
        
        int result = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        }
        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("");
        
        int result = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        }
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("");
        
        int result = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        }
        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("");
        
        int result = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        }
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] s = sc.next().split(""); s sc.next().split("") sc.next().split sc.next() sc.next sc "" int result = 0; result 0 for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        } {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        } if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--; s[i].equals("+") s[i].equals s[i] s i "+" result++ result if (s[i].equals("-")) result--; s[i].equals("-") s[i].equals s[i] s i "-" result-- result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("");
        
        int result = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        }
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("");
        
        int result = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        }
        System.out.println(result);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("");
        
        int result = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i].equals("+")) result++;
            else if (s[i].equals("-")) result--;
        }
        System.out.println(result);
    }
}
