import java.util.*;
import static java.lang.Integer.*;
//import static java.lang.Long.*;
//import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(in);
		char[] s = sc.next().toCharArray();
		sc.close();
		int ans=0;
		for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		}
		out.println(ans);
	}
} import java.util.*; util.* java import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(in);
		char[] s = sc.next().toCharArray();
		sc.close();
		int ans=0;
		for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		}
		out.println(ans);
	}
} Main public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(in);
		char[] s = sc.next().toCharArray();
		sc.close();
		int ans=0;
		for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		}
		out.println(ans);
	} main {
		int i;
		Scanner sc = new Scanner(in);
		char[] s = sc.next().toCharArray();
		sc.close();
		int ans=0;
		for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		}
		out.println(ans);
	} int i; i Scanner sc = new Scanner(in); sc new Scanner(in) char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc sc.close() sc.close sc int ans=0; ans 0 for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		} i = 0; i = 0 i 0 i < s.length i s.length s s.length i++ i++ i {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		} {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		} switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			} s[i] s i case '+': '+' case '+': ans++ ans break; case '-': '-' case '-': ans-- ans break; out.println(ans) out.println out ans String[] args args public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(in);
		char[] s = sc.next().toCharArray();
		sc.close();
		int ans=0;
		for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		}
		out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(in);
		char[] s = sc.next().toCharArray();
		sc.close();
		int ans=0;
		for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		}
		out.println(ans);
	}
} Main
import java.util.*;
import static java.lang.Integer.*;
//import static java.lang.Long.*;
//import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i;
		Scanner sc = new Scanner(in);
		char[] s = sc.next().toCharArray();
		sc.close();
		int ans=0;
		for (i = 0; i < s.length; i++) {
			switch(s[i]) {
			case '+':
				ans++;
				break;
			case '-':
				ans--;
				break;
			}
			
		}
		out.println(ans);
	}
}
