import java.util.*;
import java.io.*;

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

        String S = sc.next();
        sc.close();

        int ans = 0;
        for (int i = 0; i < S.length(); i++) {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        out.printf("%d\n", ans);
        out.flush();
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        String S = sc.next();
        sc.close();

        int ans = 0;
        for (int i = 0; i < S.length(); i++) {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        out.printf("%d\n", ans);
        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        String S = sc.next();
        sc.close();

        int ans = 0;
        for (int i = 0; i < S.length(); i++) {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        out.printf("%d\n", ans);
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        String S = sc.next();
        sc.close();

        int ans = 0;
        for (int i = 0; i < S.length(); i++) {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        out.printf("%d\n", ans);
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) String S = sc.next(); S sc.next() sc.next sc sc.close() sc.close sc int ans = 0; ans 0 for (int i = 0; i < S.length(); i++) {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        } int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        } {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        } if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            } S.charAt(i) == '+' S.charAt(i) S.charAt S i '+' {
                ans++;
            } ans++ ans {
                ans--;
            } ans-- ans out.printf("%d\n", ans) out.printf out "%d\n" ans out.flush() out.flush out String[] args args
import java.util.*;
import java.io.*;

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

        String S = sc.next();
        sc.close();

        int ans = 0;
        for (int i = 0; i < S.length(); i++) {
            if (S.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        out.printf("%d\n", ans);
        out.flush();
    }
}
