import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		String symbols = scanner.nextLine();
		String[] arr_split = symbols.split("",0);
		scanner.close();
		int ans = 0;
		for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		}
		System.out.println(ans);
	}

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

	public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		String symbols = scanner.nextLine();
		String[] arr_split = symbols.split("",0);
		scanner.close();
		int ans = 0;
		for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		}
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		String symbols = scanner.nextLine();
		String[] arr_split = symbols.split("",0);
		scanner.close();
		int ans = 0;
		for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		}
		System.out.println(ans);
	} main {
		Scanner scanner =new Scanner(System.in);
		String symbols = scanner.nextLine();
		String[] arr_split = symbols.split("",0);
		scanner.close();
		int ans = 0;
		for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		}
		System.out.println(ans);
	} Scanner scanner =new Scanner(System.in); scanner new Scanner(System.in) String symbols = scanner.nextLine(); symbols scanner.nextLine() scanner.nextLine scanner String[] arr_split = symbols.split("",0); arr_split symbols.split("",0) symbols.split symbols "" 0 scanner.close() scanner.close scanner int ans = 0; ans 0 for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		} String string arr_split {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		} {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		} if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			} string.equals("+") string.equals string "+" {
				ans++;
			} ans++ ans {
				ans--;
			} ans-- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		String symbols = scanner.nextLine();
		String[] arr_split = symbols.split("",0);
		scanner.close();
		int ans = 0;
		for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		}
		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		String symbols = scanner.nextLine();
		String[] arr_split = symbols.split("",0);
		scanner.close();
		int ans = 0;
		for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		}
		System.out.println(ans);
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner scanner =new Scanner(System.in);
		String symbols = scanner.nextLine();
		String[] arr_split = symbols.split("",0);
		scanner.close();
		int ans = 0;
		for (String string : arr_split) {
			if (string.equals("+")) {
				ans++;
			} else {
				ans--;
			}
		}
		System.out.println(ans);
	}

}
