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

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println(4 - in.nextLine().replace("+", "").length() * 2);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println(4 - in.nextLine().replace("+", "").length() * 2);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println(4 - in.nextLine().replace("+", "").length() * 2);
	} main {
		Scanner in = new Scanner(System.in);
		System.out.println(4 - in.nextLine().replace("+", "").length() * 2);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) System.out.println(4 - in.nextLine().replace("+", "").length() * 2) System.out.println System.out System System.out 4 - in.nextLine().replace("+", "").length() * 2 4 in.nextLine().replace("+", "").length() * 2 in.nextLine().replace("+", "").length() in.nextLine().replace("+", "").length in.nextLine().replace("+", "") in.nextLine().replace in.nextLine() in.nextLine in "+" "" 2 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println(4 - in.nextLine().replace("+", "").length() * 2);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println(4 - in.nextLine().replace("+", "").length() * 2);
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println(4 - in.nextLine().replace("+", "").length() * 2);
	}
}
