import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		int num = 0;
		Scanner sc = new Scanner(System.in);
		String operates = sc.next();
		sc.close();
		for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		}
		System.out.println(num);
	}
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		int num = 0;
		Scanner sc = new Scanner(System.in);
		String operates = sc.next();
		sc.close();
		for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		}
		System.out.println(num);
	}
} Main public static void main(String[] args) {
		int num = 0;
		Scanner sc = new Scanner(System.in);
		String operates = sc.next();
		sc.close();
		for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		}
		System.out.println(num);
	} main {
		int num = 0;
		Scanner sc = new Scanner(System.in);
		String operates = sc.next();
		sc.close();
		for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		}
		System.out.println(num);
	} int num = 0; num 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String operates = sc.next(); operates sc.next() sc.next sc sc.close() sc.close sc for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		} int a = 0 ; int a = 0 ; a 0 a < 4 a 4 a++ a++ a {
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		} {
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		} if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			} operates.charAt(a) == '+' operates.charAt(a) operates.charAt operates a '+' {
				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) {
		int num = 0;
		Scanner sc = new Scanner(System.in);
		String operates = sc.next();
		sc.close();
		for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		}
		System.out.println(num);
	}
} public class Main{

	public static void main(String[] args) {
		int num = 0;
		Scanner sc = new Scanner(System.in);
		String operates = sc.next();
		sc.close();
		for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		}
		System.out.println(num);
	}
} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		int num = 0;
		Scanner sc = new Scanner(System.in);
		String operates = sc.next();
		sc.close();
		for(int a = 0 ; a < 4 ; a++){
			if(operates.charAt(a) == '+'){
				num++;
			}else{
				num--;
			}
		}
		System.out.println(num);
	}
}