import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		int ans = S.replace("-", "").length() - S.replace("+", "").length();
		System.out.println(ans);
		scanner.close();
	}
} 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();
		int ans = S.replace("-", "").length() - S.replace("+", "").length();
		System.out.println(ans);
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		int ans = S.replace("-", "").length() - S.replace("+", "").length();
		System.out.println(ans);
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		int ans = S.replace("-", "").length() - S.replace("+", "").length();
		System.out.println(ans);
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.next(); S scanner.next() scanner.next scanner int ans = S.replace("-", "").length() - S.replace("+", "").length(); ans S.replace("-", "").length() - S.replace("+", "").length() S.replace("-", "").length() S.replace("-", "").length S.replace("-", "") S.replace S "-" "" S.replace("+", "").length() S.replace("+", "").length S.replace("+", "") S.replace S "+" "" System.out.println(ans) System.out.println System.out System System.out ans scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		int ans = S.replace("-", "").length() - S.replace("+", "").length();
		System.out.println(ans);
		scanner.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		int ans = S.replace("-", "").length() - S.replace("+", "").length();
		System.out.println(ans);
		scanner.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		int ans = S.replace("-", "").length() - S.replace("+", "").length();
		System.out.println(ans);
		scanner.close();
	}
}