import java.util.Scanner;

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

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