import java.util.*;

public class Main {
	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
	    String inputStr = scanner.nextLine();
		char[] array = inputStr.toCharArray();
		int result = 0;
		for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		}
		System.out.print(result);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
	    String inputStr = scanner.nextLine();
		char[] array = inputStr.toCharArray();
		int result = 0;
		for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		}
		System.out.print(result);
	}
} Main public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
	    String inputStr = scanner.nextLine();
		char[] array = inputStr.toCharArray();
		int result = 0;
		for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		}
		System.out.print(result);
	} main {
	    Scanner scanner = new Scanner(System.in);
	    String inputStr = scanner.nextLine();
		char[] array = inputStr.toCharArray();
		int result = 0;
		for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		}
		System.out.print(result);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputStr = scanner.nextLine(); inputStr scanner.nextLine() scanner.nextLine scanner char[] array = inputStr.toCharArray(); array inputStr.toCharArray() inputStr.toCharArray inputStr int result = 0; result 0 for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		} char input array {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		} {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		} if (input == '+') {
			    result++;
			} else {
			    result--;
			} input == '+' input '+' {
			    result++;
			} result++ result {
			    result--;
			} result-- result System.out.print(result) System.out.print System.out System System.out result String[] args args public class Main {
	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
	    String inputStr = scanner.nextLine();
		char[] array = inputStr.toCharArray();
		int result = 0;
		for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		}
		System.out.print(result);
	}
} public class Main {
	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
	    String inputStr = scanner.nextLine();
		char[] array = inputStr.toCharArray();
		int result = 0;
		for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		}
		System.out.print(result);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
	    String inputStr = scanner.nextLine();
		char[] array = inputStr.toCharArray();
		int result = 0;
		for (char input : array) {
			if (input == '+') {
			    result++;
			} else {
			    result--;
			}
		}
		System.out.print(result);
	}
}