import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = 0;
		String b = stdIn.next();
		char[] a = new char[4];
		for (int j = 0; j < 4; j++) {
			a[j] = b.charAt(j);
		}
		for (int i = 0; i < 4; i++) {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		}


		System.out.print(N);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = 0;
		String b = stdIn.next();
		char[] a = new char[4];
		for (int j = 0; j < 4; j++) {
			a[j] = b.charAt(j);
		}
		for (int i = 0; i < 4; i++) {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		}


		System.out.print(N);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = 0;
		String b = stdIn.next();
		char[] a = new char[4];
		for (int j = 0; j < 4; j++) {
			a[j] = b.charAt(j);
		}
		for (int i = 0; i < 4; i++) {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		}


		System.out.print(N);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = 0;
		String b = stdIn.next();
		char[] a = new char[4];
		for (int j = 0; j < 4; j++) {
			a[j] = b.charAt(j);
		}
		for (int i = 0; i < 4; i++) {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		}


		System.out.print(N);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = 0; N 0 String b = stdIn.next(); b stdIn.next() stdIn.next stdIn char[] a = new char[4]; a new char[4] 4 for (int j = 0; j < 4; j++) {
			a[j] = b.charAt(j);
		} int j = 0; int j = 0; j 0 j < 4 j 4 j++ j++ j {
			a[j] = b.charAt(j);
		} {
			a[j] = b.charAt(j);
		} a[j] = b.charAt(j) a[j] a j b.charAt(j) b.charAt b j for (int i = 0; i < 4; i++) {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		} {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		} if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1; a[i] == '+' a[i] a i '+' N = N + 1 N N + 1 N 1 N = N - 1 N N - 1 N 1 System.out.print(N) System.out.print System.out System System.out N String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = 0;
		String b = stdIn.next();
		char[] a = new char[4];
		for (int j = 0; j < 4; j++) {
			a[j] = b.charAt(j);
		}
		for (int i = 0; i < 4; i++) {
			if (a[i] == '+') 
				N = N + 1;
			else
				N = N - 1;
		}


		System.out.print(N);
	}
}