import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = 0;
		String S = sc.next();
		for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		}
		System.out.println(N);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = 0;
		String S = sc.next();
		for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		}
		System.out.println(N);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = 0;
		String S = sc.next();
		for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		}
		System.out.println(N);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = 0;
		String S = sc.next();
		for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		}
		System.out.println(N);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = 0; N 0 String S = sc.next(); S sc.next() sc.next sc for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		} int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		} {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		} switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			} S.charAt(i) S.charAt S i case '+': '+' case '+': N++ N break; case '-': '-' case '-': N-- N break; default: default: System.out.println(N) System.out.println System.out System System.out N String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = 0;
		String S = sc.next();
		for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		}
		System.out.println(N);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = 0;
		String S = sc.next();
		for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		}
		System.out.println(N);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = 0;
		String S = sc.next();
		for(int i=0;i<S.length();i++) {
			switch(S.charAt(i)){
				case '+':
					N++;
					break;
				case '-':
					N--;
					break;
				default:
						
			}
		}
		System.out.println(N);
	}
}
