import java.util.Scanner;

public class Main {

	/**
	 * Eating Symbols Easy
	 */
	public static void main(String...args) {
		try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	/**
	 * Eating Symbols Easy
	 */
	public static void main(String...args) {
		try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		}
	}
} Main /**
	 * Eating Symbols Easy
	 */
	public static void main(String...args) {
		try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		}
	} main {
		try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		}
	} try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		} {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int ans = 0; ans 0 String[] s = sc.next().split(""); s sc.next().split("") sc.next().split sc.next() sc.next sc "" for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			} String i s {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			} {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			} if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				} i.equals("+") i.equals i "+" {
					ans ++;
				} ans ++ ans {
					ans --;
				} ans -- ans System.out.println(ans) System.out.println System.out System System.out ans String...args args public class Main {

	/**
	 * Eating Symbols Easy
	 */
	public static void main(String...args) {
		try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		}
	}
} public class Main {

	/**
	 * Eating Symbols Easy
	 */
	public static void main(String...args) {
		try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	/**
	 * Eating Symbols Easy
	 */
	public static void main(String...args) {
		try (Scanner sc = new Scanner(System.in)) {
			int ans = 0;
			String[] s = sc.next().split("");
			for (String i : s) {
				if (i.equals("+")) {
					ans ++;
				} else {
					ans --;
				}
			}
			System.out.println(ans);
		}
	}
}
