import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] s = new char[4];

		for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		}

		int image = 0;
		for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		}
		System.out.println(image);
	}
} 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();
		char[] s = new char[4];

		for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		}

		int image = 0;
		for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		}
		System.out.println(image);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] s = new char[4];

		for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		}

		int image = 0;
		for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		}
		System.out.println(image);
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] s = new char[4];

		for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		}

		int image = 0;
		for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		}
		System.out.println(image);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[] s = new char[4]; s new char[4] 4 for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		} int i=0; int i=0; i 0 i< 4 i 4 i++ i++ i {
			s[i] = S.charAt(i);
		} {
			s[i] = S.charAt(i);
		} s[i] = S.charAt(i) s[i] s i S.charAt(i) S.charAt S i int image = 0; image 0 for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		} char a s {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		} {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		} if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			} ("+").equals(String.valueOf(a)) ("+").equals ("+") String.valueOf(a) String.valueOf String a {
				image++;
			} image++ image {
				image--;
			} image-- image System.out.println(image) System.out.println System.out System System.out image String[] args args public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] s = new char[4];

		for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		}

		int image = 0;
		for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		}
		System.out.println(image);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] s = new char[4];

		for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		}

		int image = 0;
		for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		}
		System.out.println(image);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] s = new char[4];

		for (int i=0; i< 4 ; i++) {
			s[i] = S.charAt(i);
		}

		int image = 0;
		for (char a : s) {
			if (("+").equals(String.valueOf(a))) {
				image++;
			} else {
				image--;
			}
		}
		System.out.println(image);
	}
}
