import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		int res = 0;
		
		for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		}
		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);
		String s = sc.next();
		
		int res = 0;
		
		for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		}
		System.out.println(res);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		int res = 0;
		
		for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		}
		System.out.println(res);
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		int res = 0;
		
		for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		}
		System.out.println(res);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int res = 0; res 0 for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		} char c s.toCharArray() s.toCharArray s {
			res+=c=='-'?-1:1;
		} {
			res+=c=='-'?-1:1;
		} res+=c=='-'?-1:1 res c=='-'?-1:1 c=='-' c '-' -1 1 1 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);
		String s = sc.next();
		
		int res = 0;
		
		for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		}
		System.out.println(res);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		int res = 0;
		
		for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		}
		System.out.println(res);
	}
} 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 res = 0;
		
		for(char c : s.toCharArray()) {
			res+=c=='-'?-1:1;
		}
		System.out.println(res);
	}
}