import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		}
	}
} Main public static void main(String[] args) {
		
		try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		}
	} main {
		
		try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		}
	} try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		} {
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int result = 0; result 0 for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			} {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			} String a = s.substring(i, i+1); a s.substring(i, i+1) s.substring s i i+1 i 1 if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				} a.equals("+") a.equals a "+" {
					result += 1;
				} result += 1 result 1 {
					result -= 1;
				} result -= 1 result 1 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {
		
		try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		}
	}
} public class Main {

	public static void main(String[] args) {
		
		try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		try (Scanner sc = new Scanner(System.in)){
			String s = sc.next();
			int result = 0;
			
			for (int i = 0; i < 4; i++) {
				String a = s.substring(i, i+1);
				if (a.equals("+")) {
					result += 1;
				} else {
					result -= 1;
				}
			}
			System.out.println(result);
		}
	}
}
