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