import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
    execute();
    }

    private static void execute() throws IOException {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        System.out.println(eat(line));
    }

    public static int eat(String symbols) {
        int number = 0;
        for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        }
        return number;
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws IOException {
    execute();
    }

    private static void execute() throws IOException {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        System.out.println(eat(line));
    }

    public static int eat(String symbols) {
        int number = 0;
        for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        }
        return number;
    }
} Main public static void main(String[] args) throws IOException {
    execute();
    } main {
    execute();
    } execute() execute String[] args args private static void execute() throws IOException {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        System.out.println(eat(line));
    } execute {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        System.out.println(eat(line));
    } BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br System.out.println(eat(line)) System.out.println System.out System System.out eat(line) eat line public static int eat(String symbols) {
        int number = 0;
        for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        }
        return number;
    } eat {
        int number = 0;
        for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        }
        return number;
    } int number = 0; number 0 for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        } char ch symbols.toCharArray() symbols.toCharArray symbols {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        } {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        } switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            } ch case '+': '+' case '+': number++ number break; case '-': '-' case '-': number-- number break; return number; number String symbols symbols public class Main {
    public static void main(String[] args) throws IOException {
    execute();
    }

    private static void execute() throws IOException {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        System.out.println(eat(line));
    }

    public static int eat(String symbols) {
        int number = 0;
        for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        }
        return number;
    }
} public class Main {
    public static void main(String[] args) throws IOException {
    execute();
    }

    private static void execute() throws IOException {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        System.out.println(eat(line));
    }

    public static int eat(String symbols) {
        int number = 0;
        for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        }
        return number;
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
    execute();
    }

    private static void execute() throws IOException {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        System.out.println(eat(line));
    }

    public static int eat(String symbols) {
        int number = 0;
        for (char ch : symbols.toCharArray()) {
            switch (ch) {
                case '+':
                    number++;
                    break;
                case '-':
                    number--;
                    break;
            }
        }
        return number;
    }
}