import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int result = 0;
        String steps = sc.nextLine();

        for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                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);
        int result = 0;
        String steps = sc.nextLine();

        for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        }
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int result = 0;
        String steps = sc.nextLine();

        for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        }
        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        int result = 0;
        String steps = sc.nextLine();

        for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        }
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int result = 0; result 0 String steps = sc.nextLine(); steps sc.nextLine() sc.nextLine sc for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        } {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        } char ch = steps.charAt(i); ch steps.charAt(i) steps.charAt steps i if (ch == '+')
                result++;
            else if (ch == '-')
                result--; ch == '+' ch '+' result++ result if (ch == '-')
                result--; ch == '-' ch '-' 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);
        int result = 0;
        String steps = sc.nextLine();

        for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        }
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int result = 0;
        String steps = sc.nextLine();

        for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                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);
        int result = 0;
        String steps = sc.nextLine();

        for (int i = 0; i < 4; i++) {
            char ch = steps.charAt(i);
            if (ch == '+')
                result++;
            else if (ch == '-')
                result--;
        }
        System.out.println(result);
    }
}
