import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int num = 0;
        int plus = 0;
        int minus = 0;
        for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        }
        minus = s.length()-plus;
        System.out.println(num+plus-minus);
    }
} 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();
        int num = 0;
        int plus = 0;
        int minus = 0;
        for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        }
        minus = s.length()-plus;
        System.out.println(num+plus-minus);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int num = 0;
        int plus = 0;
        int minus = 0;
        for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        }
        minus = s.length()-plus;
        System.out.println(num+plus-minus);
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int num = 0;
        int plus = 0;
        int minus = 0;
        for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        }
        minus = s.length()-plus;
        System.out.println(num+plus-minus);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int num = 0; num 0 int plus = 0; plus 0 int minus = 0; minus 0 for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
            if(s.charAt(i)=='+'){
                plus++;
            }
        } {
            if(s.charAt(i)=='+'){
                plus++;
            }
        } if(s.charAt(i)=='+'){
                plus++;
            } s.charAt(i)=='+' s.charAt(i) s.charAt s i '+' {
                plus++;
            } plus++ plus minus = s.length()-plus minus s.length()-plus s.length() s.length s plus System.out.println(num+plus-minus) System.out.println System.out System System.out num+plus-minus num+plus num plus minus String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int num = 0;
        int plus = 0;
        int minus = 0;
        for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        }
        minus = s.length()-plus;
        System.out.println(num+plus-minus);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int num = 0;
        int plus = 0;
        int minus = 0;
        for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        }
        minus = s.length()-plus;
        System.out.println(num+plus-minus);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int num = 0;
        int plus = 0;
        int minus = 0;
        for(int i=0; i<s.length(); i++){
            if(s.charAt(i)=='+'){
                plus++;
            }
        }
        minus = s.length()-plus;
        System.out.println(num+plus-minus);
    }
}