import java.util.Scanner;

public class Main {

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

			String str = sc.next();

			String[] strArray = str.split("");
			int num = 0;

			for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			}

			System.out.println(num);



	}


}

 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.next();

			String[] strArray = str.split("");
			int num = 0;

			for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			}

			System.out.println(num);



	}


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

			String str = sc.next();

			String[] strArray = str.split("");
			int num = 0;

			for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			}

			System.out.println(num);



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

			String str = sc.next();

			String[] strArray = str.split("");
			int num = 0;

			for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			}

			System.out.println(num);



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String[] strArray = str.split(""); strArray str.split("") str.split str "" int num = 0; num 0 for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			} int i =0; int i =0; i 0 i < strArray.length i strArray.length strArray strArray.length i++ i++ i {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			} {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			} if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				} strArray[i].equals("+") strArray[i].equals strArray[i] strArray i "+" {
					num++;
				} num++ num {
					num--;
				} num-- num System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {

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

			String str = sc.next();

			String[] strArray = str.split("");
			int num = 0;

			for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			}

			System.out.println(num);



	}


} public class Main {

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

			String str = sc.next();

			String[] strArray = str.split("");
			int num = 0;

			for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			}

			System.out.println(num);



	}


} Main
import java.util.Scanner;

public class Main {

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

			String str = sc.next();

			String[] strArray = str.split("");
			int num = 0;

			for(int i =0;i < strArray.length;i++) {

				if(strArray[i].equals("+")) {
					num++;
				}else {
					num--;
				}
			}

			System.out.println(num);



	}


}


