import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.nextLine();

		int I = 0;

		StringBuilder sb = new StringBuilder(S);
		for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		}

		System.out.println(I);

	}

} 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.nextLine();

		int I = 0;

		StringBuilder sb = new StringBuilder(S);
		for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		}

		System.out.println(I);

	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.nextLine();

		int I = 0;

		StringBuilder sb = new StringBuilder(S);
		for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		}

		System.out.println(I);

	} main {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.nextLine();

		int I = 0;

		StringBuilder sb = new StringBuilder(S);
		for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		}

		System.out.println(I);

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.nextLine(); S scanner.nextLine() scanner.nextLine scanner int I = 0; I 0 StringBuilder sb = new StringBuilder(S); sb new StringBuilder(S) for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i ++ i ++ i {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		} {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		} if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			} sb.charAt(i) == '+' sb.charAt(i) sb.charAt sb i '+' {
				I ++;
			} I ++ I if (sb.charAt(i) == '-') {
				I --;
			} sb.charAt(i) == '-' sb.charAt(i) sb.charAt sb i '-' {
				I --;
			} I -- I System.out.println(I) System.out.println System.out System System.out I String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.nextLine();

		int I = 0;

		StringBuilder sb = new StringBuilder(S);
		for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		}

		System.out.println(I);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.nextLine();

		int I = 0;

		StringBuilder sb = new StringBuilder(S);
		for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		}

		System.out.println(I);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.nextLine();

		int I = 0;

		StringBuilder sb = new StringBuilder(S);
		for (int i = 0; i < 4; i ++) {
			if(sb.charAt(i) == '+') {
				I ++;
			} else if (sb.charAt(i) == '-') {
				I --;
			}
		}

		System.out.println(I);

	}

}
