import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		String S = in.nextLine();
		//int N = in.nextInt();
		int num = 0;
		for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		}
		System.out.print(num);
		in.close();
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		String S = in.nextLine();
		//int N = in.nextInt();
		int num = 0;
		for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		}
		System.out.print(num);
		in.close();
		
	}
} Main public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		String S = in.nextLine();
		//int N = in.nextInt();
		int num = 0;
		for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		}
		System.out.print(num);
		in.close();
		
	} main {
		Scanner in = new java.util.Scanner(System.in);
		String S = in.nextLine();
		//int N = in.nextInt();
		int num = 0;
		for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		}
		System.out.print(num);
		in.close();
		
	} Scanner in = new java.util.Scanner(System.in); in new java.util.Scanner(System.in) String S = in.nextLine(); S in.nextLine() in.nextLine in int num = 0; num 0 for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		} {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		} if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			} S.substring(i, i+1).equals("+") S.substring(i, i+1).equals S.substring(i, i+1) S.substring S i i+1 i 1 "+" {
				num++;
			} num++ num {
				num--;
			} num-- num System.out.print(num) System.out.print System.out System System.out num in.close() in.close in String[] args args public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		String S = in.nextLine();
		//int N = in.nextInt();
		int num = 0;
		for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		}
		System.out.print(num);
		in.close();
		
	}
} public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		String S = in.nextLine();
		//int N = in.nextInt();
		int num = 0;
		for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		}
		System.out.print(num);
		in.close();
		
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		String S = in.nextLine();
		//int N = in.nextInt();
		int num = 0;
		for(int i=0; i<4; i++) {
			if(S.substring(i, i+1).equals("+")) {
				num++;
			}else {
				num--;
			}
		}
		System.out.print(num);
		in.close();
		
	}
}