import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.nextLine();
		char[] cha = str.toCharArray();
		int i = 0;

		for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		}
		System.out.println(i);


	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.nextLine();
		char[] cha = str.toCharArray();
		int i = 0;

		for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		}
		System.out.println(i);


	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.nextLine();
		char[] cha = str.toCharArray();
		int i = 0;

		for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		}
		System.out.println(i);


	} main {
		Scanner sc = new Scanner(System.in);

		String str = sc.nextLine();
		char[] cha = str.toCharArray();
		int i = 0;

		for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		}
		System.out.println(i);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc char[] cha = str.toCharArray(); cha str.toCharArray() str.toCharArray str int i = 0; i 0 for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		} char c cha {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		} {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		} if(c=='-') {
				i--;
			}else {
				i++;
			} c=='-' c '-' {
				i--;
			} i-- i {
				i++;
			} i++ i System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.nextLine();
		char[] cha = str.toCharArray();
		int i = 0;

		for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		}
		System.out.println(i);


	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.nextLine();
		char[] cha = str.toCharArray();
		int i = 0;

		for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		}
		System.out.println(i);


	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String str = sc.nextLine();
		char[] cha = str.toCharArray();
		int i = 0;

		for(char c : cha) {
			if(c=='-') {
				i--;
			}else {
				i++;
			}
		}
		System.out.println(i);


	}
}

