import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int res = 0;
        for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        }
        System.out.println(res);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int res = 0;
        for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        }
        System.out.println(res);
    }
} Main public static void main(String[] args) {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int res = 0;
        for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        }
        System.out.println(res);
    } main {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int res = 0;
        for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        }
        System.out.println(res);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String str = scanner.nextLine(); str scanner.nextLine() scanner.nextLine scanner int res = 0; res 0 for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        } char ch str.toCharArray() str.toCharArray str {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        } {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        } if (ch == '+') {
                res ++;
            } else {
                res --;
            } ch == '+' ch '+' {
                res ++;
            } res ++ res {
                res --;
            } res -- res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int res = 0;
        for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        }
        System.out.println(res);
    }
} public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int res = 0;
        for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        }
        System.out.println(res);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int res = 0;
        for (char ch : str.toCharArray()) {
            if (ch == '+') {
                res ++;
            } else {
                res --;
            }
        }
        System.out.println(res);
    }
}
