import java.util.Scanner;

/*
 * AtCoder Beginner Contest 101 A
 */
public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String[] sArray = s.split("");


		int result = 0;
		for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		}

		System.out.println(result);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String[] sArray = s.split("");


		int result = 0;
		for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		}

		System.out.println(result);

	}

} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String[] sArray = s.split("");


		int result = 0;
		for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		}

		System.out.println(result);

	} main {

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String[] sArray = s.split("");


		int result = 0;
		for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		}

		System.out.println(result);

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.next(); s scanner.next() scanner.next scanner String[] sArray = s.split(""); sArray s.split("") s.split s "" int result = 0; result 0 for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		} String str sArray {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		} {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		} if (str.equals("+")) {
				result++;
			} else {
				result--;
			} str.equals("+") str.equals str "+" {
				result++;
			} result++ result {
				result--;
			} result-- result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String[] sArray = s.split("");


		int result = 0;
		for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		}

		System.out.println(result);

	}

} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String[] sArray = s.split("");


		int result = 0;
		for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		}

		System.out.println(result);

	}

} Main
import java.util.Scanner;

/*
 * AtCoder Beginner Contest 101 A
 */
public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String[] sArray = s.split("");


		int result = 0;
		for (String str : sArray) {
			if (str.equals("+")) {
				result++;
			} else {
				result--;
			}
		}

		System.out.println(result);

	}

}