

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final String line = in.nextLine();
        int res = 0;
        for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        }
        System.out.println(res);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final String line = in.nextLine();
        int res = 0;
        for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        }
        System.out.println(res);
    }
} Main public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final String line = in.nextLine();
        int res = 0;
        for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        }
        System.out.println(res);
    } main {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final String line = in.nextLine();
        int res = 0;
        for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        }
        System.out.println(res);
    } final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) final String line = in.nextLine(); line in.nextLine() in.nextLine in int res = 0; res 0 for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        } char c line.toCharArray() line.toCharArray line {
            res += c == '+' ? 1 : -1;
        } {
            res += c == '+' ? 1 : -1;
        } res += c == '+' ? 1 : -1 res c == '+' ? 1 : -1 c == '+' c '+' 1 -1 1 System.out.println(res) System.out.println System.out System System.out res String[] args args public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final String line = in.nextLine();
        int res = 0;
        for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        }
        System.out.println(res);
    }
} public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final String line = in.nextLine();
        int res = 0;
        for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        }
        System.out.println(res);
    }
} Main


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final String line = in.nextLine();
        int res = 0;
        for (char c : line.toCharArray()) {
            res += c == '+' ? 1 : -1;
        }
        System.out.println(res);
    }
}
