
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		int p = 0;
		int m = 0;

		char ch[] = new char[S.length()];

		for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		}
		System.out.print(p-m);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		int p = 0;
		int m = 0;

		char ch[] = new char[S.length()];

		for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		}
		System.out.print(p-m);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		int p = 0;
		int m = 0;

		char ch[] = new char[S.length()];

		for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		}
		System.out.print(p-m);
	} main {

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		int p = 0;
		int m = 0;

		char ch[] = new char[S.length()];

		for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		}
		System.out.print(p-m);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc sc.close() sc.close sc int p = 0; p 0 int m = 0; m 0 char ch[] = new char[S.length()]; ch new char[S.length()] S.length() S.length S for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		} int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		} {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		} ch[i] = S.charAt(i) ch[i] ch i S.charAt(i) S.charAt S i if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			} ch[i] == '+' ch[i] ch i '+' {
				p++;
			} p++ p if (ch[i] == '-') {
				m++;
			} ch[i] == '-' ch[i] ch i '-' {
				m++;
			} m++ m System.out.print(p-m) System.out.print System.out System System.out p-m p m String[] args args public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		int p = 0;
		int m = 0;

		char ch[] = new char[S.length()];

		for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		}
		System.out.print(p-m);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		int p = 0;
		int m = 0;

		char ch[] = new char[S.length()];

		for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		}
		System.out.print(p-m);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		int p = 0;
		int m = 0;

		char ch[] = new char[S.length()];

		for (int i = 0; i < S.length(); i++) {
			ch[i] = S.charAt(i);

			if (ch[i] == '+') {
				p++;
			} else if (ch[i] == '-') {
				m++;
			}
		}
		System.out.print(p-m);
	}
}