import java.util.Scanner;

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

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