import java.io.IOException;
import java.util.NoSuchElementException;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        }
    }
} import java.io.IOException; IOException java.io import java.util.NoSuchElementException; NoSuchElementException java.util import java.io.BufferedReader; BufferedReader java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        }
    }
} Main public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        }
    } main {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        }
    } try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        } {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        } BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) new BufferedReader(
                new InputStreamReader(System.in)) final String s = reader.readLine(); s reader.readLine() reader.readLine reader final int len = s.length(); len s.length() s.length s int cnt = 0; cnt 0 for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            } int i = 0; int i = 0; i 0 i < len i len i++ i++ i {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            } {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            } if (s.charAt(i) == '+') cnt++;
                else cnt--; s.charAt(i) == '+' s.charAt(i) s.charAt s i '+' cnt++ cnt cnt-- cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        }
    }
} Main
import java.io.IOException;
import java.util.NoSuchElementException;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int len = s.length();

            int cnt = 0;
            for (int i = 0; i < len; i++) {
                if (s.charAt(i) == '+') cnt++;
                else cnt--;
            }

            System.out.println(cnt);
        }
    }
}
