import java.util.Scanner;

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

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

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

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

        for(int i=0; i<4; i++) {
            char c = s.charAt(i);
            if(c=='+') res++;
            else if(c=='-') res--;
        }
        System.out.println(res);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int res = 0; res 0 String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc for(int i=0; i<4; i++) {
            char c = s.charAt(i);
            if(c=='+') res++;
            else if(c=='-') res--;
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            char c = s.charAt(i);
            if(c=='+') res++;
            else if(c=='-') res--;
        } {
            char c = s.charAt(i);
            if(c=='+') res++;
            else if(c=='-') res--;
        } char c = s.charAt(i); c s.charAt(i) s.charAt s i if(c=='+') res++;
            else if(c=='-') res--; c=='+' c '+' res++ res if(c=='-') res--; c=='-' c '-' res-- res System.out.println(res) System.out.println System.out System System.out res String[] args args
import java.util.Scanner;

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

        for(int i=0; i<4; i++) {
            char c = s.charAt(i);
            if(c=='+') res++;
            else if(c=='-') res--;
        }
        System.out.println(res);
    }
}