import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		scanner.close();
		int plus = 0, minus = 0;

		for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		}
		int A = plus - minus;
		System.out.println(A);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		scanner.close();
		int plus = 0, minus = 0;

		for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		}
		int A = plus - minus;
		System.out.println(A);
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		scanner.close();
		int plus = 0, minus = 0;

		for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		}
		int A = plus - minus;
		System.out.println(A);
	} main {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		scanner.close();
		int plus = 0, minus = 0;

		for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		}
		int A = plus - minus;
		System.out.println(A);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.next(); S scanner.next() scanner.next scanner scanner.close() scanner.close scanner int plus = 0 plus 0 minus = 0; minus 0 for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		} int n = 0; int n = 0; n 0 n < S.length() n S.length() S.length S n++ n++ n {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		} {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		} String s = S.substring(n, n + 1); s S.substring(n, n + 1) S.substring S n n + 1 n 1 if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			} s.equals("+") s.equals s "+" {
				plus++;
			} plus++ plus if (s.equals("-")) {
				minus++;
			} s.equals("-") s.equals s "-" {
				minus++;
			} minus++ minus int A = plus - minus; A plus - minus plus minus System.out.println(A) System.out.println System.out System System.out A String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		scanner.close();
		int plus = 0, minus = 0;

		for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		}
		int A = plus - minus;
		System.out.println(A);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		scanner.close();
		int plus = 0, minus = 0;

		for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		}
		int A = plus - minus;
		System.out.println(A);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		scanner.close();
		int plus = 0, minus = 0;

		for (int n = 0; n < S.length(); n++) {
			String s = S.substring(n, n + 1);
			if (s.equals("+")) {
				plus++;
			} else if (s.equals("-")) {
				minus++;
			}
		}
		int A = plus - minus;
		System.out.println(A);
	}
}