import java.util.*;
import java.io.*;

class Main {

	void solve() {

		int num = 0;
		char[] a = incharar();
		for (int i=0; i<4; i++) {
			if (a[i] == '+') num++;
			else num--;
		}
		out.println(num);

	}

	public static Scanner in = new Scanner(System.in);
	public static PrintWriter out = new PrintWriter(System.out);

	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

	public int inint() {
		return in.nextInt();
	}

	public String instr() {
		return in.next();
	}

	public int[] inintar(int num) {
		int[] a = new int[num];
		for (int i=0; i<num; i++) {
			a[i] = in.nextInt();
		}
		return a;
	}

	public char[] incharar() {
		return in.next().toCharArray();
	}

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

	void solve() {

		int num = 0;
		char[] a = incharar();
		for (int i=0; i<4; i++) {
			if (a[i] == '+') num++;
			else num--;
		}
		out.println(num);

	}

	public static Scanner in = new Scanner(System.in);
	public static PrintWriter out = new PrintWriter(System.out);

	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

	public int inint() {
		return in.nextInt();
	}

	public String instr() {
		return in.next();
	}

	public int[] inintar(int num) {
		int[] a = new int[num];
		for (int i=0; i<num; i++) {
			a[i] = in.nextInt();
		}
		return a;
	}

	public char[] incharar() {
		return in.next().toCharArray();
	}

} Main public static Scanner in = new Scanner(System.in); in new Scanner(System.in) public static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) void solve() {

		int num = 0;
		char[] a = incharar();
		for (int i=0; i<4; i++) {
			if (a[i] == '+') num++;
			else num--;
		}
		out.println(num);

	} solve {

		int num = 0;
		char[] a = incharar();
		for (int i=0; i<4; i++) {
			if (a[i] == '+') num++;
			else num--;
		}
		out.println(num);

	} int num = 0; num 0 char[] a = incharar(); a incharar() incharar for (int i=0; i<4; i++) {
			if (a[i] == '+') num++;
			else num--;
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			if (a[i] == '+') num++;
			else num--;
		} {
			if (a[i] == '+') num++;
			else num--;
		} if (a[i] == '+') num++;
			else num--; a[i] == '+' a[i] a i '+' num++ num num-- num out.println(num) out.println out num public static void main(String[] args) {
		new Main().solve();
		out.flush();
	} main {
		new Main().solve();
		out.flush();
	} new Main().solve() new Main().solve new Main() out.flush() out.flush out String[] args args public int inint() {
		return in.nextInt();
	} inint {
		return in.nextInt();
	} return in.nextInt(); in.nextInt() in.nextInt in public String instr() {
		return in.next();
	} instr {
		return in.next();
	} return in.next(); in.next() in.next in public int[] inintar(int num) {
		int[] a = new int[num];
		for (int i=0; i<num; i++) {
			a[i] = in.nextInt();
		}
		return a;
	} inintar {
		int[] a = new int[num];
		for (int i=0; i<num; i++) {
			a[i] = in.nextInt();
		}
		return a;
	} int[] a = new int[num]; a new int[num] num for (int i=0; i<num; i++) {
			a[i] = in.nextInt();
		} int i=0; int i=0; i 0 i<num i num i++ i++ i {
			a[i] = in.nextInt();
		} {
			a[i] = in.nextInt();
		} a[i] = in.nextInt() a[i] a i in.nextInt() in.nextInt in return a; a int num num public char[] incharar() {
		return in.next().toCharArray();
	} incharar {
		return in.next().toCharArray();
	} return in.next().toCharArray(); in.next().toCharArray() in.next().toCharArray in.next() in.next in
import java.util.*;
import java.io.*;

class Main {

	void solve() {

		int num = 0;
		char[] a = incharar();
		for (int i=0; i<4; i++) {
			if (a[i] == '+') num++;
			else num--;
		}
		out.println(num);

	}

	public static Scanner in = new Scanner(System.in);
	public static PrintWriter out = new PrintWriter(System.out);

	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

	public int inint() {
		return in.nextInt();
	}

	public String instr() {
		return in.next();
	}

	public int[] inintar(int num) {
		int[] a = new int[num];
		for (int i=0; i<num; i++) {
			a[i] = in.nextInt();
		}
		return a;
	}

	public char[] incharar() {
		return in.next().toCharArray();
	}

}