import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		int output = 0;
		for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		}
		System.out.println(output);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		int output = 0;
		for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		}
		System.out.println(output);
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		int output = 0;
		for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		}
		System.out.println(output);
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		int output = 0;
		for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		}
		System.out.println(output);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc int output = 0; output 0 for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		} int i = 0 ; int i = 0 ; i 0 i < 4 i 4 i++ i++ i {
			output += (input.charAt(i) == '+')? 1:-1;
		} {
			output += (input.charAt(i) == '+')? 1:-1;
		} output += (input.charAt(i) == '+')? 1:-1 output (input.charAt(i) == '+')? 1:-1 (input.charAt(i) == '+') input.charAt(i) input.charAt input i '+' 1 -1 1 System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		int output = 0;
		for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		}
		System.out.println(output);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		int output = 0;
		for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		}
		System.out.println(output);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		int output = 0;
		for(int i = 0 ; i < 4 ; i++) {
			output += (input.charAt(i) == '+')? 1:-1;
		}
		System.out.println(output);
	}

}