import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        String s = scanner.next();
        System.out.println(s.replace("-", "").length() - s.replace("+", "").length());
    }
} import java.util.*; util.* java public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        String s = scanner.next();
        System.out.println(s.replace("-", "").length() - s.replace("+", "").length());
    }
} Main static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[]$) {
        String s = scanner.next();
        System.out.println(s.replace("-", "").length() - s.replace("+", "").length());
    } main {
        String s = scanner.next();
        System.out.println(s.replace("-", "").length() - s.replace("+", "").length());
    } String s = scanner.next(); s scanner.next() scanner.next scanner System.out.println(s.replace("-", "").length() - s.replace("+", "").length()) System.out.println System.out System System.out s.replace("-", "").length() - s.replace("+", "").length() s.replace("-", "").length() s.replace("-", "").length s.replace("-", "") s.replace s "-" "" s.replace("+", "").length() s.replace("+", "").length s.replace("+", "") s.replace s "+" "" String[]$ $ public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        String s = scanner.next();
        System.out.println(s.replace("-", "").length() - s.replace("+", "").length());
    }
} public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        String s = scanner.next();
        System.out.println(s.replace("-", "").length() - s.replace("+", "").length());
    }
} Main
import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        String s = scanner.next();
        System.out.println(s.replace("-", "").length() - s.replace("+", "").length());
    }
}