import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static int solve(String s) {
		int r = 0;
		for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--;
		return r;
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static int solve(String s) {
		int r = 0;
		for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--;
		return r;
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	} main {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	} Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) String s = in.next(); s in.next() in.next in System.out.println(solve(s)) System.out.println System.out System System.out solve(s) solve s in.close() in.close in String[] args args private static int solve(String s) {
		int r = 0;
		for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--;
		return r;
	} solve {
		int r = 0;
		for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--;
		return r;
	} int r = 0; r 0 for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--; int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i if (s.charAt(i) == '+')
				r++;
			else
				r--; if (s.charAt(i) == '+')
				r++;
			else
				r--; s.charAt(i) == '+' s.charAt(i) s.charAt s i '+' r++ r r-- r return r; r String s s public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static int solve(String s) {
		int r = 0;
		for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--;
		return r;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static int solve(String s) {
		int r = 0;
		for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--;
		return r;
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static int solve(String s) {
		int r = 0;
		for (int i = 0; i < s.length(); i++)
			if (s.charAt(i) == '+')
				r++;
			else
				r--;
		return r;
	}
}