class Main {
	public static void main(String[] args){
		String S = new java.util.Scanner(System.in).nextLine();
		String[] Schar = S.split("");
		int N = 0;
		for (int i = 0; i < 4; i++) {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		}
		System.out.println(N);
	}
} class Main {
	public static void main(String[] args){
		String S = new java.util.Scanner(System.in).nextLine();
		String[] Schar = S.split("");
		int N = 0;
		for (int i = 0; i < 4; i++) {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		}
		System.out.println(N);
	}
} Main public static void main(String[] args){
		String S = new java.util.Scanner(System.in).nextLine();
		String[] Schar = S.split("");
		int N = 0;
		for (int i = 0; i < 4; i++) {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		}
		System.out.println(N);
	} main {
		String S = new java.util.Scanner(System.in).nextLine();
		String[] Schar = S.split("");
		int N = 0;
		for (int i = 0; i < 4; i++) {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		}
		System.out.println(N);
	} String S = new java.util.Scanner(System.in).nextLine(); S new java.util.Scanner(System.in).nextLine() new java.util.Scanner(System.in).nextLine new java.util.Scanner(System.in) String[] Schar = S.split(""); Schar S.split("") S.split S "" int N = 0; N 0 for (int i = 0; i < 4; i++) {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		} {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		} if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			} Schar[i].equals("+") Schar[i].equals Schar[i] Schar i "+" {
				N++;
			} N++ N {
				N--;
			} N-- N System.out.println(N) System.out.println System.out System System.out N String[] args args
class Main {
	public static void main(String[] args){
		String S = new java.util.Scanner(System.in).nextLine();
		String[] Schar = S.split("");
		int N = 0;
		for (int i = 0; i < 4; i++) {
			if (Schar[i].equals("+")) {
				N++;
			} else {
				N--;
			}
		}
		System.out.println(N);
	}
}