import java.util.Scanner;

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

public class Main {
	public static void main(String[] args) {
		new Main().solve(new Scanner(System.in));
	}
	
	public void solve(Scanner sc) {
		String s = sc.next();
		
		int answer = 0;
		for(int i=0; i<4; i++) {
			char symbol = s.charAt(i);
			
			if(symbol == '+') {
				answer++;
			} else {
				answer--;
			}
		}
		
		System.out.println(answer);
	}
}
