import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
		str = str.replaceAll("[^-,+]", "");
		int plus = str.replaceAll("[-]", "").length();
		int minus = str.length() - plus;

		System.out.println(plus - minus);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
		str = str.replaceAll("[^-,+]", "");
		int plus = str.replaceAll("[-]", "").length();
		int minus = str.length() - plus;

		System.out.println(plus - minus);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
		str = str.replaceAll("[^-,+]", "");
		int plus = str.replaceAll("[-]", "").length();
		int minus = str.length() - plus;

		System.out.println(plus - minus);
	} main {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
		str = str.replaceAll("[^-,+]", "");
		int plus = str.replaceAll("[-]", "").length();
		int minus = str.length() - plus;

		System.out.println(plus - minus);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str; str str = sc.next() str sc.next() sc.next sc str = str.replaceAll("[^-,+]", "") str str.replaceAll("[^-,+]", "") str.replaceAll str "[^-,+]" "" int plus = str.replaceAll("[-]", "").length(); plus str.replaceAll("[-]", "").length() str.replaceAll("[-]", "").length str.replaceAll("[-]", "") str.replaceAll str "[-]" "" int minus = str.length() - plus; minus str.length() - plus str.length() str.length str plus System.out.println(plus - minus) System.out.println System.out System System.out plus - minus plus minus String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
		str = str.replaceAll("[^-,+]", "");
		int plus = str.replaceAll("[-]", "").length();
		int minus = str.length() - plus;

		System.out.println(plus - minus);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
		str = str.replaceAll("[^-,+]", "");
		int plus = str.replaceAll("[-]", "").length();
		int minus = str.length() - plus;

		System.out.println(plus - minus);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str;
		str = sc.next();
		str = str.replaceAll("[^-,+]", "");
		int plus = str.replaceAll("[-]", "").length();
		int minus = str.length() - plus;

		System.out.println(plus - minus);
	}
}
