import java.util.Scanner;

public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int n = 0;
		
		for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		}
		
		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);
		String s = sc.nextLine();
		int n = 0;
		
		for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		}
		
		System.out.println(n);
		
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int n = 0;
		
		for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		}
		
		System.out.println(n);
		
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int n = 0;
		
		for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		}
		
		System.out.println(n);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int n = 0; n 0 for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		} {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		} char op = s.charAt(i); op s.charAt(i) s.charAt s i switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			} op case '+' : '+' case '+' : n++ n break; case '-' : '-' case '-' : n-- n break; 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);
		String s = sc.nextLine();
		int n = 0;
		
		for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		}
		
		System.out.println(n);
		
	}
} public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int n = 0;
		
		for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		}
		
		System.out.println(n);
		
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int n = 0;
		
		for(int i = 0; i < 4; i++) {
			char op = s.charAt(i);
			
			switch(op){
			case '+' :
				n++;
				break;
			case '-' :
				n--;
				break;
			}
		}
		
		System.out.println(n);
		
	}
}