import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) throws IOException {
		Scanner scanner = new Scanner(System.in);
		char a = (char) System.in.read(); 
		char b = (char) System.in.read(); 
		char c = (char) System.in.read(); 
		char d = (char) System.in.read(); 
		int num = 0;
		if (a=='+') {
			num++;
		}
		else {
			num--;
		}
		if (b=='+') {
			num++;
		}
		else {
			num--;
		}
		if (c=='+') {
			num++;
		}
		else {
			num--;
		}
		if (d=='+') {
			num++;
		}
		else {
			num--;
		}
		System.out.println(num);
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) throws IOException {
		Scanner scanner = new Scanner(System.in);
		char a = (char) System.in.read(); 
		char b = (char) System.in.read(); 
		char c = (char) System.in.read(); 
		char d = (char) System.in.read(); 
		int num = 0;
		if (a=='+') {
			num++;
		}
		else {
			num--;
		}
		if (b=='+') {
			num++;
		}
		else {
			num--;
		}
		if (c=='+') {
			num++;
		}
		else {
			num--;
		}
		if (d=='+') {
			num++;
		}
		else {
			num--;
		}
		System.out.println(num);
	}
} Main public static void main(String args[]) throws IOException {
		Scanner scanner = new Scanner(System.in);
		char a = (char) System.in.read(); 
		char b = (char) System.in.read(); 
		char c = (char) System.in.read(); 
		char d = (char) System.in.read(); 
		int num = 0;
		if (a=='+') {
			num++;
		}
		else {
			num--;
		}
		if (b=='+') {
			num++;
		}
		else {
			num--;
		}
		if (c=='+') {
			num++;
		}
		else {
			num--;
		}
		if (d=='+') {
			num++;
		}
		else {
			num--;
		}
		System.out.println(num);
	} main {
		Scanner scanner = new Scanner(System.in);
		char a = (char) System.in.read(); 
		char b = (char) System.in.read(); 
		char c = (char) System.in.read(); 
		char d = (char) System.in.read(); 
		int num = 0;
		if (a=='+') {
			num++;
		}
		else {
			num--;
		}
		if (b=='+') {
			num++;
		}
		else {
			num--;
		}
		if (c=='+') {
			num++;
		}
		else {
			num--;
		}
		if (d=='+') {
			num++;
		}
		else {
			num--;
		}
		System.out.println(num);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) char a = (char) System.in.read(); a (char) System.in.read() System.in.read System.in System System.in char b = (char) System.in.read(); b (char) System.in.read() System.in.read System.in System System.in char c = (char) System.in.read(); c (char) System.in.read() System.in.read System.in System System.in char d = (char) System.in.read(); d (char) System.in.read() System.in.read System.in System System.in int num = 0; num 0 if (a=='+') {
			num++;
		}
		else {
			num--;
		} a=='+' a '+' {
			num++;
		} num++ num {
			num--;
		} num-- num if (b=='+') {
			num++;
		}
		else {
			num--;
		} b=='+' b '+' {
			num++;
		} num++ num {
			num--;
		} num-- num if (c=='+') {
			num++;
		}
		else {
			num--;
		} c=='+' c '+' {
			num++;
		} num++ num {
			num--;
		} num-- num if (d=='+') {
			num++;
		}
		else {
			num--;
		} d=='+' d '+' {
			num++;
		} num++ num {
			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[]) throws IOException {
		Scanner scanner = new Scanner(System.in);
		char a = (char) System.in.read(); 
		char b = (char) System.in.read(); 
		char c = (char) System.in.read(); 
		char d = (char) System.in.read(); 
		int num = 0;
		if (a=='+') {
			num++;
		}
		else {
			num--;
		}
		if (b=='+') {
			num++;
		}
		else {
			num--;
		}
		if (c=='+') {
			num++;
		}
		else {
			num--;
		}
		if (d=='+') {
			num++;
		}
		else {
			num--;
		}
		System.out.println(num);
	}
} public class Main {
	public static void main(String args[]) throws IOException {
		Scanner scanner = new Scanner(System.in);
		char a = (char) System.in.read(); 
		char b = (char) System.in.read(); 
		char c = (char) System.in.read(); 
		char d = (char) System.in.read(); 
		int num = 0;
		if (a=='+') {
			num++;
		}
		else {
			num--;
		}
		if (b=='+') {
			num++;
		}
		else {
			num--;
		}
		if (c=='+') {
			num++;
		}
		else {
			num--;
		}
		if (d=='+') {
			num++;
		}
		else {
			num--;
		}
		System.out.println(num);
	}
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) throws IOException {
		Scanner scanner = new Scanner(System.in);
		char a = (char) System.in.read(); 
		char b = (char) System.in.read(); 
		char c = (char) System.in.read(); 
		char d = (char) System.in.read(); 
		int num = 0;
		if (a=='+') {
			num++;
		}
		else {
			num--;
		}
		if (b=='+') {
			num++;
		}
		else {
			num--;
		}
		if (c=='+') {
			num++;
		}
		else {
			num--;
		}
		if (d=='+') {
			num++;
		}
		else {
			num--;
		}
		System.out.println(num);
	}
}