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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		}
		System.out.println(num);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		}
		System.out.println(num);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		}
		System.out.println(num);
	} main {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		}
		System.out.println(num);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = 0; num 0 for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		} char c sc.nextLine().toCharArray() sc.nextLine().toCharArray sc.nextLine() sc.nextLine sc {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		} {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		} if (c == '+') {
				num++;
			} c == '+' c '+' {
				num++;
			} num++ num if (c == '-') {
				num--;
			} c == '-' c '-' {
				num--;
			} num-- num System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		}
		System.out.println(num);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		}
		System.out.println(num);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = 0;
		for (char c : sc.nextLine().toCharArray()) {
			if (c == '+') {
				num++;
			} 
			if (c == '-') {
				num--;
			} 
		}
		System.out.println(num);
	}
}