import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int number = 0;
		List<String> a = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		String in = sc.next();

		for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		}

		for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		}
		sc.close();

		System.out.println(number);

	}

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		int number = 0;
		List<String> a = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		String in = sc.next();

		for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		}

		for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		}
		sc.close();

		System.out.println(number);

	}

} Main public static void main(String[] args) {

		int number = 0;
		List<String> a = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		String in = sc.next();

		for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		}

		for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		}
		sc.close();

		System.out.println(number);

	} main {

		int number = 0;
		List<String> a = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		String in = sc.next();

		for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		}

		for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		}
		sc.close();

		System.out.println(number);

	} int number = 0; number 0 List<String> a = new ArrayList<>(); a new ArrayList<>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String in = sc.next(); in sc.next() sc.next sc for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		} int i = 0; int i = 0; i 0 i < in.length() i in.length() in.length in i++ i++ i {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		} {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		} char b = in.charAt(i); b in.charAt(i) in.charAt in i String c = String.valueOf(b); c String.valueOf(b) String.valueOf String b a.add(c) a.add a c for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		} int i = 0; int i = 0; i 0 i < a.size() i a.size() a.size a i++ i++ i {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		} {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		} if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			} a.get(i).equals("+") a.get(i).equals a.get(i) a.get a i "+" {
				number++;
			} number++ number if (a.get(i).equals("-")) {
				number--;
			} a.get(i).equals("-") a.get(i).equals a.get(i) a.get a i "-" {
				number--;
			} number-- number sc.close() sc.close sc System.out.println(number) System.out.println System.out System System.out number String[] args args public class Main {

	public static void main(String[] args) {

		int number = 0;
		List<String> a = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		String in = sc.next();

		for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		}

		for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		}
		sc.close();

		System.out.println(number);

	}

} public class Main {

	public static void main(String[] args) {

		int number = 0;
		List<String> a = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		String in = sc.next();

		for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		}

		for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		}
		sc.close();

		System.out.println(number);

	}

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int number = 0;
		List<String> a = new ArrayList<>();

		Scanner sc = new Scanner(System.in);
		String in = sc.next();

		for (int i = 0; i < in.length(); i++) {
			char b = in.charAt(i);
			String c = String.valueOf(b);
			a.add(c);
		}

		for (int i = 0; i < a.size(); i++) {
			if (a.get(i).equals("+")) {
				number++;
			} else if (a.get(i).equals("-")) {
				number--;
			}
		}
		sc.close();

		System.out.println(number);

	}

}
