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