import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		String a = sc.nextLine();
		String[] b = new String[a.length()];
		for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		}
		System.out.println(sum);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		String a = sc.nextLine();
		String[] b = new String[a.length()];
		for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		}
		System.out.println(sum);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		String a = sc.nextLine();
		String[] b = new String[a.length()];
		for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		}
		System.out.println(sum);
	} main {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		String a = sc.nextLine();
		String[] b = new String[a.length()];
		for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		}
		System.out.println(sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int sum = 0; sum 0 String a = sc.nextLine(); a sc.nextLine() sc.nextLine sc String[] b = new String[a.length()]; b new String[a.length()] a.length() a.length a for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		} int i = 0; int i = 0; i 0 i < a.length() i a.length() a.length a i++ i++ i {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		} {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		} String kigou = String.valueOf(a.charAt(i)); kigou String.valueOf(a.charAt(i)) String.valueOf String a.charAt(i) a.charAt a i if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			} "+".equals(kigou) "+".equals "+" kigou {
				sum += 1;
			} sum += 1 sum 1 if("-".equals(kigou)) {
				sum -= 1;
			} "-".equals(kigou) "-".equals "-" kigou {
				sum -= 1;
			} sum -= 1 sum 1 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) {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		String a = sc.nextLine();
		String[] b = new String[a.length()];
		for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		}
		System.out.println(sum);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		String a = sc.nextLine();
		String[] b = new String[a.length()];
		for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		}
		System.out.println(sum);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int sum = 0;
		String a = sc.nextLine();
		String[] b = new String[a.length()];
		for(int i = 0;i < a.length(); i++) {
			String kigou = String.valueOf(a.charAt(i));
			if("+".equals(kigou)) {
				sum += 1;
			} else if("-".equals(kigou)) {
				sum -= 1;
			}
		}
		System.out.println(sum);
	}

}