import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		System.out.print(Solution(s));
	}
	static int Solution(String s) {
		int sum = 0;
		
		for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		}
		return sum;
	}
} 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.nextLine();
		System.out.print(Solution(s));
	}
	static int Solution(String s) {
		int sum = 0;
		
		for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		}
		return sum;
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		System.out.print(Solution(s));
	} main {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		System.out.print(Solution(s));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner System.out.print(Solution(s)) System.out.print System.out System System.out Solution(s) Solution s String[] args args static int Solution(String s) {
		int sum = 0;
		
		for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		}
		return sum;
	} Solution {
		int sum = 0;
		
		for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		}
		return sum;
	} int sum = 0; sum 0 for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		} int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		} {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		} if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			} s.charAt(i)== '+' s.charAt(i) s.charAt s i '+' {
				sum = sum + 1;
			} sum = sum + 1 sum sum + 1 sum 1 {
				sum = sum - 1;
			} sum = sum - 1 sum sum - 1 sum 1 return sum; sum String s s public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		System.out.print(Solution(s));
	}
	static int Solution(String s) {
		int sum = 0;
		
		for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		}
		return sum;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		System.out.print(Solution(s));
	}
	static int Solution(String s) {
		int sum = 0;
		
		for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		}
		return sum;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.nextLine();
		System.out.print(Solution(s));
	}
	static int Solution(String s) {
		int sum = 0;
		
		for(int i=0; i<s.length(); i++) {
			if(s.charAt(i)== '+') {
				sum = sum + 1;
			}else {
				sum = sum - 1;
			}
		}
		return sum;
	}
}
