
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int number = 0;
		String symbol;

		String S = scan.nextLine();

		for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		}
		System.out.println(number);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int number = 0;
		String symbol;

		String S = scan.nextLine();

		for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		}
		System.out.println(number);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int number = 0;
		String symbol;

		String S = scan.nextLine();

		for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		}
		System.out.println(number);
	} main {
		Scanner scan = new Scanner(System.in);
		int number = 0;
		String symbol;

		String S = scan.nextLine();

		for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		}
		System.out.println(number);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int number = 0; number 0 String symbol; symbol String S = scan.nextLine(); S scan.nextLine() scan.nextLine scan for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		} {
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		} symbol = S.substring(i, i + 1) symbol S.substring(i, i + 1) S.substring S i i + 1 i 1 if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			} symbol.equals("+") symbol.equals symbol "+" {
				number += 1;
			} number += 1 number 1 if (symbol.equals("-")) {
				number -= 1;
			} symbol.equals("-") symbol.equals symbol "-" {
				number -= 1;
			} number -= 1 number 1 System.out.println(number) System.out.println System.out System System.out number String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int number = 0;
		String symbol;

		String S = scan.nextLine();

		for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		}
		System.out.println(number);
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int number = 0;
		String symbol;

		String S = scan.nextLine();

		for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		}
		System.out.println(number);
	}
} Main

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int number = 0;
		String symbol;

		String S = scan.nextLine();

		for (int i = 0; i < 4; i++){
			symbol = S.substring(i, i + 1);
			if (symbol.equals("+")){
				number += 1;
			}else if (symbol.equals("-")) {
				number -= 1;
			}
		}
		System.out.println(number);
	}
}