import java.util.Scanner;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 記号を格納
        String[] arr;
        arr = new String[4];

        // 文字列の取得
        String str = sc.nextLine();

        for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        }

        // 結果を保持
        int result = 0;

        // 計算
        for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        }

        System.out.println(result);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 記号を格納
        String[] arr;
        arr = new String[4];

        // 文字列の取得
        String str = sc.nextLine();

        for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        }

        // 結果を保持
        int result = 0;

        // 計算
        for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        }

        System.out.println(result);

    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 記号を格納
        String[] arr;
        arr = new String[4];

        // 文字列の取得
        String str = sc.nextLine();

        for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        }

        // 結果を保持
        int result = 0;

        // 計算
        for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        }

        System.out.println(result);

    } main {

        Scanner sc = new Scanner(System.in);

        // 記号を格納
        String[] arr;
        arr = new String[4];

        // 文字列の取得
        String str = sc.nextLine();

        for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        }

        // 結果を保持
        int result = 0;

        // 計算
        for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        }

        System.out.println(result);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] arr; arr arr = new String[4] arr new String[4] 4 String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        } int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
        	arr[i] = str.split("")[i];
        } {
        	arr[i] = str.split("")[i];
        } arr[i] = str.split("")[i] arr[i] arr i str.split("")[i] str.split("") str.split str "" i int result = 0; result 0 for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        } String item arr {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        } {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        } switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	} item case "+": "+" case "+": result++ result break; case "-": "-" case "-": result-- result break; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 記号を格納
        String[] arr;
        arr = new String[4];

        // 文字列の取得
        String str = sc.nextLine();

        for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        }

        // 結果を保持
        int result = 0;

        // 計算
        for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        }

        System.out.println(result);

    }
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 記号を格納
        String[] arr;
        arr = new String[4];

        // 文字列の取得
        String str = sc.nextLine();

        for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        }

        // 結果を保持
        int result = 0;

        // 計算
        for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        }

        System.out.println(result);

    }
} Main
import java.util.Scanner;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 記号を格納
        String[] arr;
        arr = new String[4];

        // 文字列の取得
        String str = sc.nextLine();

        for (int i = 0; i < arr.length; i++) {
        	arr[i] = str.split("")[i];
        }

        // 結果を保持
        int result = 0;

        // 計算
        for (String item : arr) {
        	switch(item) {
        	case "+":
        		result++;
        		break;
        	case "-":
        		result--;
        		break;
        	}
        }

        System.out.println(result);

    }
}