import java.util.*;

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

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