import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		String[] strs = str.split("");
		int num = 0;
		for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		}
		System.out.println(num);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		String[] strs = str.split("");
		int num = 0;
		for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		}
		System.out.println(num);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		String[] strs = str.split("");
		int num = 0;
		for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		}
		System.out.println(num);
	} main {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		String[] strs = str.split("");
		int num = 0;
		for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		}
		System.out.println(num);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String[] strs = str.split(""); strs str.split("") str.split str "" int num = 0; num 0 for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		} int i = 0; int i = 0; i 0 i < strs.length i strs.length strs strs.length i++ i++ i {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		} {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		} if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			} strs[i].equals("+") strs[i].equals strs[i] strs i "+" {
				num += 1;
			} num += 1 num 1 {
				num -= 1;
			} num -= 1 num 1 System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		String[] strs = str.split("");
		int num = 0;
		for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		}
		System.out.println(num);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		String[] strs = str.split("");
		int num = 0;
		for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		}
		System.out.println(num);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		String[] strs = str.split("");
		int num = 0;
		for(int i = 0; i < strs.length; i++) {
			if(strs[i].equals("+")){
				num += 1;
			} else {
				num -= 1;
			}
		}
		System.out.println(num);
	}
}