import java.util.Scanner;

public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int answer = 0;
	    String S = sc.next();

		for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		}
		
		

		sc.close();

	    System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int answer = 0;
	    String S = sc.next();

		for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		}
		
		

		sc.close();

	    System.out.println(answer);
    }
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int answer = 0;
	    String S = sc.next();

		for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		}
		
		

		sc.close();

	    System.out.println(answer);
    } main {
		Scanner sc = new Scanner(System.in);
		int answer = 0;
	    String S = sc.next();

		for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		}
		
		

		sc.close();

	    System.out.println(answer);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int answer = 0; answer 0 String S = sc.next(); S sc.next() sc.next sc for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		} {
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		} if(S.substring(i,i+1).equals("+")) answer++; 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 "+" answer++ answer if(S.substring(i,i+1).equals("-")) answer--; 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 "-" answer-- answer sc.close() sc.close sc System.out.println(answer) System.out.println System.out System System.out answer String args[] args public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int answer = 0;
	    String S = sc.next();

		for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		}
		
		

		sc.close();

	    System.out.println(answer);
    }
} public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int answer = 0;
	    String S = sc.next();

		for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		}
		
		

		sc.close();

	    System.out.println(answer);
    }
} Main
import java.util.Scanner;

public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int answer = 0;
	    String S = sc.next();

		for(int i=0; i<4; i++){
			if(S.substring(i,i+1).equals("+")) answer++;
			if(S.substring(i,i+1).equals("-")) answer--;
		}
		
		

		sc.close();

	    System.out.println(answer);
    }
}
