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