import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		int num = 0;

		for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		}

		System.out.println(num);

	}

} 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 num = 0;

		for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		}

		System.out.println(num);

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		int num = 0;

		for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		}

		System.out.println(num);

	} main {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		int num = 0;

		for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		}

		System.out.println(num);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int num = 0; num 0 for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		} {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		} if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			} String.valueOf(S.charAt(i)).equals("+") String.valueOf(S.charAt(i)).equals String.valueOf(S.charAt(i)) String.valueOf String S.charAt(i) S.charAt S i "+" {
				num++;
			} num++ num {
				num--;
			} num-- num System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		int num = 0;

		for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		}

		System.out.println(num);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		int num = 0;

		for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		}

		System.out.println(num);

	}

} 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 num = 0;

		for (int i = 0; i < 4; i++) {
			if (String.valueOf(S.charAt(i)).equals("+")) {
				num++;
			} else {
				num--;
			}

		}

		System.out.println(num);

	}

}