import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int kekka=0;
		char[] aa=new char[4];
		String bb="";
		bb=sc.next();
		for(int i=0; i<4; i++) {
			aa[i]=bb.charAt(i);
		}

		for(int i=0; i<4; i++) {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		}

		System.out.println(kekka);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int kekka=0;
		char[] aa=new char[4];
		String bb="";
		bb=sc.next();
		for(int i=0; i<4; i++) {
			aa[i]=bb.charAt(i);
		}

		for(int i=0; i<4; i++) {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		}

		System.out.println(kekka);
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int kekka=0;
		char[] aa=new char[4];
		String bb="";
		bb=sc.next();
		for(int i=0; i<4; i++) {
			aa[i]=bb.charAt(i);
		}

		for(int i=0; i<4; i++) {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		}

		System.out.println(kekka);
	} main {
		Scanner sc=new Scanner(System.in);
		int kekka=0;
		char[] aa=new char[4];
		String bb="";
		bb=sc.next();
		for(int i=0; i<4; i++) {
			aa[i]=bb.charAt(i);
		}

		for(int i=0; i<4; i++) {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		}

		System.out.println(kekka);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int kekka=0; kekka 0 char[] aa=new char[4]; aa new char[4] 4 String bb=""; bb "" bb=sc.next() bb sc.next() sc.next sc for(int i=0; i<4; i++) {
			aa[i]=bb.charAt(i);
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			aa[i]=bb.charAt(i);
		} {
			aa[i]=bb.charAt(i);
		} aa[i]=bb.charAt(i) aa[i] aa i bb.charAt(i) bb.charAt bb i for(int i=0; i<4; i++) {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		} {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		} if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			} aa[i]=='+' aa[i] aa i '+' {
				kekka++;
			} kekka++ kekka if(aa[i]=='-') {
				kekka--;
			} aa[i]=='-' aa[i] aa i '-' {
				kekka--;
			} kekka-- kekka System.out.println(kekka) System.out.println System.out System System.out kekka String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int kekka=0;
		char[] aa=new char[4];
		String bb="";
		bb=sc.next();
		for(int i=0; i<4; i++) {
			aa[i]=bb.charAt(i);
		}

		for(int i=0; i<4; i++) {
			if(aa[i]=='+') {
				kekka++;
			}
			else if(aa[i]=='-') {
				kekka--;
			}
		}

		System.out.println(kekka);
	}
}