import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int mind = 0;
		String input = new String();
		input = sc.next();
		for(int i = 0; i < 4; i++) {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		}
		System.out.println(mind);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int mind = 0;
		String input = new String();
		input = sc.next();
		for(int i = 0; i < 4; i++) {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		}
		System.out.println(mind);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int mind = 0;
		String input = new String();
		input = sc.next();
		for(int i = 0; i < 4; i++) {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		}
		System.out.println(mind);
	} main {
		Scanner sc = new Scanner(System.in);
		int mind = 0;
		String input = new String();
		input = sc.next();
		for(int i = 0; i < 4; i++) {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		}
		System.out.println(mind);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int mind = 0; mind 0 String input = new String(); input new String() input = sc.next() input sc.next() sc.next sc for(int i = 0; i < 4; i++) {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		} {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		} if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1; String.valueOf(input.charAt(i)).equals("+") String.valueOf(input.charAt(i)).equals String.valueOf(input.charAt(i)) String.valueOf String input.charAt(i) input.charAt input i "+" mind = mind + 1 mind mind + 1 mind 1 mind = mind - 1 mind mind - 1 mind 1 System.out.println(mind) System.out.println System.out System System.out mind String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int mind = 0;
		String input = new String();
		input = sc.next();
		for(int i = 0; i < 4; i++) {
			if(String.valueOf(input.charAt(i)).equals("+"))
				mind = mind + 1;
			else
				mind = mind - 1;
		}
		System.out.println(mind);
	}
}
