import java.util.*;


public class Main {

	public static void main(String[] args) {
		
		int t = 0;
		
		String S = new java.util.Scanner(System.in).nextLine();
		String[] ar = S.split("");
		String[] vr = new String[2];
		vr[0] = "+";
		vr[1] = "-";
 		for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		}
		System.out.println(t);
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		
		int t = 0;
		
		String S = new java.util.Scanner(System.in).nextLine();
		String[] ar = S.split("");
		String[] vr = new String[2];
		vr[0] = "+";
		vr[1] = "-";
 		for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		}
		System.out.println(t);
	}

} Main public static void main(String[] args) {
		
		int t = 0;
		
		String S = new java.util.Scanner(System.in).nextLine();
		String[] ar = S.split("");
		String[] vr = new String[2];
		vr[0] = "+";
		vr[1] = "-";
 		for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		}
		System.out.println(t);
	} main {
		
		int t = 0;
		
		String S = new java.util.Scanner(System.in).nextLine();
		String[] ar = S.split("");
		String[] vr = new String[2];
		vr[0] = "+";
		vr[1] = "-";
 		for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		}
		System.out.println(t);
	} int t = 0; t 0 String S = new java.util.Scanner(System.in).nextLine(); S new java.util.Scanner(System.in).nextLine() new java.util.Scanner(System.in).nextLine new java.util.Scanner(System.in) String[] ar = S.split(""); ar S.split("") S.split S "" String[] vr = new String[2]; vr new String[2] 2 vr[0] = "+" vr[0] vr 0 "+" vr[1] = "-" vr[1] vr 1 "-" for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		} {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		} if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			} ar[i].equals(vr[0]) ar[i].equals ar[i] ar i vr[0] vr 0 {
				t++;
			} t++ t {
				t--;
			} t-- t System.out.println(t) System.out.println System.out System System.out t String[] args args public class Main {

	public static void main(String[] args) {
		
		int t = 0;
		
		String S = new java.util.Scanner(System.in).nextLine();
		String[] ar = S.split("");
		String[] vr = new String[2];
		vr[0] = "+";
		vr[1] = "-";
 		for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		}
		System.out.println(t);
	}

} public class Main {

	public static void main(String[] args) {
		
		int t = 0;
		
		String S = new java.util.Scanner(System.in).nextLine();
		String[] ar = S.split("");
		String[] vr = new String[2];
		vr[0] = "+";
		vr[1] = "-";
 		for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		}
		System.out.println(t);
	}

} Main
import java.util.*;


public class Main {

	public static void main(String[] args) {
		
		int t = 0;
		
		String S = new java.util.Scanner(System.in).nextLine();
		String[] ar = S.split("");
		String[] vr = new String[2];
		vr[0] = "+";
		vr[1] = "-";
 		for(int i=0;i<4;i++) {
			if(ar[i].equals(vr[0])) {
				t++;
			}
			else {
				t--;
			}
		}
		System.out.println(t);
	}

}
