import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int ans = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		}


		System.out.println(ans);
		reader.close();
	}
}


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

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int ans = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		}


		System.out.println(ans);
		reader.close();
	}
} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int ans = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		}


		System.out.println(ans);
		reader.close();
	} main {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int ans = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		}


		System.out.println(ans);
		reader.close();
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) String N = reader.next(); N reader.next() reader.next reader int ans = 0; ans 0 for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		} int i = 0; int i = 0; i 0 i < N.length() i N.length() N.length N i++ i++ i {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		} {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		} char ch = N.charAt(i); ch N.charAt(i) N.charAt N i if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			} ch == '+' ch '+' {
				ans++;
			} ans++ ans {
				ans--;
			} ans-- ans System.out.println(ans) System.out.println System.out System System.out ans reader.close() reader.close reader String[] args args public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int ans = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		}


		System.out.println(ans);
		reader.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int ans = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		}


		System.out.println(ans);
		reader.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int ans = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			if (ch == '+' ) {
				ans++;
			} else {
				ans--;
			}
		}


		System.out.println(ans);
		reader.close();
	}
}



