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

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] arr = in.next().toCharArray();
        int x = 0;
        for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        }

        System.out.println(x);
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] arr = in.next().toCharArray();
        int x = 0;
        for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        }

        System.out.println(x);
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] arr = in.next().toCharArray();
        int x = 0;
        for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        }

        System.out.println(x);
    } main {
        Scanner in = new Scanner(System.in);
        char[] arr = in.next().toCharArray();
        int x = 0;
        for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        }

        System.out.println(x);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) char[] arr = in.next().toCharArray(); arr in.next().toCharArray() in.next().toCharArray in.next() in.next in int x = 0; x 0 for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        } char c arr {
            if (c == '+') ++x;
            else --x;
        } {
            if (c == '+') ++x;
            else --x;
        } if (c == '+') ++x;
            else --x; c == '+' c '+' ++x x --x x System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] arr = in.next().toCharArray();
        int x = 0;
        for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        }

        System.out.println(x);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] arr = in.next().toCharArray();
        int x = 0;
        for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        }

        System.out.println(x);
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] arr = in.next().toCharArray();
        int x = 0;
        for (char c : arr) {
            if (c == '+') ++x;
            else --x;
        }

        System.out.println(x);
    }
}