import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		String[] list = new String[4];
		int s = 0;
		for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		}
		System.out.println(s);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		String[] list = new String[4];
		int s = 0;
		for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		}
		System.out.println(s);
	}
} Main public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		String[] list = new String[4];
		int s = 0;
		for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		}
		System.out.println(s);
	} main {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		String[] list = new String[4];
		int s = 0;
		for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		}
		System.out.println(s);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String temp = scanner.nextLine(); temp scanner.nextLine() scanner.nextLine scanner String[] list = new String[4]; list new String[4] 4 int s = 0; s 0 for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		} {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		} list[i] = String.valueOf(temp.charAt(i)) list[i] list i String.valueOf(temp.charAt(i)) String.valueOf String temp.charAt(i) temp.charAt temp i if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			} list[i].equals("+") list[i].equals list[i] list i "+" {
				s++;
			} s++ s {
				s--;
			} s-- s System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {

	public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		String[] list = new String[4];
		int s = 0;
		for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		}
		System.out.println(s);
	}
} public class Main {

	public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		String[] list = new String[4];
		int s = 0;
		for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		}
		System.out.println(s);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		String[] list = new String[4];
		int s = 0;
		for(int i = 0; i < 4;i++) {
			list[i] = String.valueOf(temp.charAt(i));
			if(list[i].equals("+")) {
				s++;
			}else {
				s--;
			}
		}
		System.out.println(s);
	}
}