
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
    static int[] w = new int[100010];
    static int[] v = new int[100010];
    static int[][] dp = new int[110][100010];
    static int k;

    static int chmin(int a, int b) {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    }

    static int chmax(int a, int b) {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int n = 0;
        for (int i = 0; i < s.length; i++) {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    }
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
    static int[] w = new int[100010];
    static int[] v = new int[100010];
    static int[][] dp = new int[110][100010];
    static int k;

    static int chmin(int a, int b) {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    }

    static int chmax(int a, int b) {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int n = 0;
        for (int i = 0; i < s.length; i++) {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    }
} Main static int[] w = new int[100010]; w new int[100010] 100010 static int[] v = new int[100010]; v new int[100010] 100010 static int[][] dp = new int[110][100010]; dp new int[110][100010] 110 100010 static int k; k static int chmin(int a, int b) {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    } chmin {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    } if (a > b) {
            a = b;
            return a;
        } a > b a b {
            a = b;
            return a;
        } a = b a b return a; a return a; a int a a int b b static int chmax(int a, int b) {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    } chmax {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    } if (a < b) {
            a = b;
            return a;
        } a < b a b {
            a = b;
            return a;
        } a = b a b return a; a return a; a int a a int b b public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int n = 0;
        for (int i = 0; i < s.length; i++) {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    } main {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int n = 0;
        for (int i = 0; i < s.length; i++) {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int n = 0; n 0 for (int i = 0; i < s.length; i++) {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        } int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        } {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        } if (s[i] == '+') {
                n++;
            } else {
                n--;
            } s[i] == '+' s[i] s i '+' {
                n++;
            } n++ n {
                n--;
            } n-- n System.out.println(n) System.out.println System.out System System.out n String[] args args public class Main {
    static int[] w = new int[100010];
    static int[] v = new int[100010];
    static int[][] dp = new int[110][100010];
    static int k;

    static int chmin(int a, int b) {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    }

    static int chmax(int a, int b) {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int n = 0;
        for (int i = 0; i < s.length; i++) {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    }
} public class Main {
    static int[] w = new int[100010];
    static int[] v = new int[100010];
    static int[][] dp = new int[110][100010];
    static int k;

    static int chmin(int a, int b) {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    }

    static int chmax(int a, int b) {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    }

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

import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
    static int[] w = new int[100010];
    static int[] v = new int[100010];
    static int[][] dp = new int[110][100010];
    static int k;

    static int chmin(int a, int b) {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    }

    static int chmax(int a, int b) {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int n = 0;
        for (int i = 0; i < s.length; i++) {
            if (s[i] == '+') {
                n++;
            } else {
                n--;
            }
        }
        System.out.println(n);
    }
}
