import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		String str = null;
		
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		}
		
		int num = 0;
		for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		}
		System.out.println(num);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		String str = null;
		
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		}
		
		int num = 0;
		for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		}
		System.out.println(num);
	}
} Main public static void main(String[] args) {
		String str = null;
		
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		}
		
		int num = 0;
		for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		}
		System.out.println(num);
	} main {
		String str = null;
		
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		}
		
		int num = 0;
		for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		}
		System.out.println(num);
	} String str = null; str null try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		} catch (IOException e) {
			return;
		} IOException e {
			return;
		} return; {
			str = br.readLine();
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) str = br.readLine() str br.readLine() br.readLine br int num = 0; num 0 for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		} int i = 0; int i = 0; i 0 i< 4 i 4 i++ i++ i {
			if (str.charAt(i) == '+') num++;
			else num--;
		} {
			if (str.charAt(i) == '+') num++;
			else num--;
		} if (str.charAt(i) == '+') num++;
			else num--; str.charAt(i) == '+' str.charAt(i) str.charAt str i '+' 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) {
		String str = null;
		
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		}
		
		int num = 0;
		for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		}
		System.out.println(num);
	}
} public class Main {
	public static void main(String[] args) {
		String str = null;
		
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		}
		
		int num = 0;
		for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		}
		System.out.println(num);
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		String str = null;
		
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			str = br.readLine();
		} catch (IOException e) {
			return;
		}
		
		int num = 0;
		for (int i = 0; i< 4; i++) {
			if (str.charAt(i) == '+') num++;
			else num--;
		}
		System.out.println(num);
	}
}
