import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int s=0;
		
		String str=sc.next();
		char[] c=str.toCharArray();
		for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		}
		System.out.println(s);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int s=0;
		
		String str=sc.next();
		char[] c=str.toCharArray();
		for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		}
		System.out.println(s);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int s=0;
		
		String str=sc.next();
		char[] c=str.toCharArray();
		for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		}
		System.out.println(s);
	} main {
		Scanner sc = new Scanner(System.in);
		int s=0;
		
		String str=sc.next();
		char[] c=str.toCharArray();
		for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		}
		System.out.println(s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s=0; s 0 String str=sc.next(); str sc.next() sc.next sc char[] c=str.toCharArray(); c str.toCharArray() str.toCharArray str for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		} {
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		} if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			} c[i]=='+' c[i] c i '+' {
				s++;
			} s++ s if(c[i]=='-'){
				s--;
			} c[i]=='-' c[i] c i '-' {
				s--;
			} s-- s System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int s=0;
		
		String str=sc.next();
		char[] c=str.toCharArray();
		for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		}
		System.out.println(s);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int s=0;
		
		String str=sc.next();
		char[] c=str.toCharArray();
		for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		}
		System.out.println(s);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int s=0;
		
		String str=sc.next();
		char[] c=str.toCharArray();
		for(int i=0;i<4;i++){
			if(c[i]=='+'){
				s++;
			}else if(c[i]=='-'){
				s--;
			}
		}
		System.out.println(s);
	}
}