// package app;

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

public class Main {

    // フィールド
    static char[][] field;
    // 最小反転回数
    static int retMinCnt = Integer.MAX_VALUE;

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);

        final String S = sc.next();
        int result = 0;
        for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        }

        System.out.println(result);

    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

    // フィールド
    static char[][] field;
    // 最小反転回数
    static int retMinCnt = Integer.MAX_VALUE;

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);

        final String S = sc.next();
        int result = 0;
        for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        }

        System.out.println(result);

    }
} Main // フィールド
    static char[][] field; field // 最小反転回数
    static int retMinCnt = Integer.MAX_VALUE; retMinCnt Integer.MAX_VALUE Integer Integer.MAX_VALUE public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);

        final String S = sc.next();
        int result = 0;
        for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        }

        System.out.println(result);

    } main {
        final Scanner sc = new Scanner(System.in);

        final String S = sc.next();
        int result = 0;
        for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        }

        System.out.println(result);

    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final String S = sc.next(); S sc.next() sc.next sc int result = 0; result 0 for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        } int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
            result += S.charAt(i) == '+' ? 1 : -1;
        } {
            result += S.charAt(i) == '+' ? 1 : -1;
        } result += S.charAt(i) == '+' ? 1 : -1 result S.charAt(i) == '+' ? 1 : -1 S.charAt(i) == '+' S.charAt(i) S.charAt S i '+' 1 -1 1 System.out.println(result) System.out.println System.out System System.out result final String[] args args public class Main {

    // フィールド
    static char[][] field;
    // 最小反転回数
    static int retMinCnt = Integer.MAX_VALUE;

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);

        final String S = sc.next();
        int result = 0;
        for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        }

        System.out.println(result);

    }
} public class Main {

    // フィールド
    static char[][] field;
    // 最小反転回数
    static int retMinCnt = Integer.MAX_VALUE;

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);

        final String S = sc.next();
        int result = 0;
        for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        }

        System.out.println(result);

    }
} Main
// package app;

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

public class Main {

    // フィールド
    static char[][] field;
    // 最小反転回数
    static int retMinCnt = Integer.MAX_VALUE;

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);

        final String S = sc.next();
        int result = 0;
        for (int i = 0; i < S.length(); i++) {
            result += S.charAt(i) == '+' ? 1 : -1;
        }

        System.out.println(result);

    }
}