import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int n = 0;
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int n = 0;
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int n = 0;
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    } main {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int n = 0;
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner int n = 0; n 0 for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        } {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        } if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            } s.charAt(i) == '+' s.charAt(i) s.charAt s i '+' {
                n++;
            } n++ n {
                n--;
            } n-- n System.out.println(n) System.out.println System.out System System.out n String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int n = 0;
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    }
}
