import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/*Atcoder用
 * 		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] tmp = br.readLine().split(" ");
		int a = Integer.parseInt(tmp[0]);
		int b = Integer.parseInt(tmp[1]);
		int c = Integer.parseInt(tmp[2]);


		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String get = br.readLine();
		char[] s = get.toCharArray();
		for(char c:s)System.out.println(c);

		List<Integer> ls = new ArrayList<Integer>();
		String[] tmp = br.readLine().split(" ");
		for (int n = 0; n < N; n++) {
			ls.add(Integer.parseInt(tmp[n]));
		}
 */

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();

		int sum = 0;
		for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		}
		System.out.println(sum);



	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();

		int sum = 0;
		for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		}
		System.out.println(sum);



	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();

		int sum = 0;
		for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		}
		System.out.println(sum);



	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();

		int sum = 0;
		for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		}
		System.out.println(sum);



	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br int sum = 0; sum 0 for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		} int i = 0; int i = 0; i 0 i<4 i 4 i++ i++ i {
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		} {
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		} char c = s.charAt(i); c s.charAt(i) s.charAt s i if(c == '+')sum++;
			else sum--; c == '+' c '+' sum++ sum sum-- sum System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();

		int sum = 0;
		for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		}
		System.out.println(sum);



	}
} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();

		int sum = 0;
		for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		}
		System.out.println(sum);



	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/*Atcoder用
 * 		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] tmp = br.readLine().split(" ");
		int a = Integer.parseInt(tmp[0]);
		int b = Integer.parseInt(tmp[1]);
		int c = Integer.parseInt(tmp[2]);


		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String get = br.readLine();
		char[] s = get.toCharArray();
		for(char c:s)System.out.println(c);

		List<Integer> ls = new ArrayList<Integer>();
		String[] tmp = br.readLine().split(" ");
		for (int n = 0; n < N; n++) {
			ls.add(Integer.parseInt(tmp[n]));
		}
 */

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();

		int sum = 0;
		for(int i = 0;i<4;i++){
			char c = s.charAt(i);
			if(c == '+')sum++;
			else sum--;
		}
		System.out.println(sum);



	}
}