import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int sum=0;
        for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int sum=0;
        for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int sum=0;
        for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    } main {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int sum=0;
        for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int sum=0; sum 0 for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        } int ct = 0; int ct = 0; ct 0 ct < str.length() ct str.length() str.length str ct++ ct++ ct {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        } {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        } if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            } str.charAt(ct)=='+' str.charAt(ct) str.charAt str ct '+' {
                sum++;
            } sum++ sum {
                sum--;
            } sum-- sum System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int sum=0;
        for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int sum=0;
        for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int sum=0;
        for (int ct = 0; ct < str.length(); ct++) {
            if(str.charAt(ct)=='+'){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
}
