import java.util.Arrays;
import java.util.Map;
import java.util.Scanner;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Main {
	public static final void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
		System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L));
	}
} import java.util.Arrays; Arrays java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util import java.util.function.Function; Function java.util.function import java.util.stream.Collectors; Collectors java.util.stream public class Main {
	public static final void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
		System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L));
	}
} Main public static final void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
		System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L));
	} main {
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
		System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String line = scanner.nextLine(); line scanner.nextLine() scanner.nextLine scanner Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting())); count Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting())) Arrays.stream(line.split("")).collect Arrays.stream(line.split("")) Arrays.stream Arrays line.split("") line.split line "" Collectors.groupingBy(Function.identity(), Collectors.counting()) Collectors.groupingBy Collectors Function.identity() Function.identity Function Collectors.counting() Collectors.counting Collectors System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L)) System.out.println System.out System System.out count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L) count.getOrDefault("+", 0L) count.getOrDefault count "+" 0L count.getOrDefault("-", 0L) count.getOrDefault count "-" 0L String[] args args public class Main {
	public static final void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
		System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L));
	}
} public class Main {
	public static final void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
		System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L));
	}
} Main
import java.util.Arrays;
import java.util.Map;
import java.util.Scanner;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Main {
	public static final void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String line = scanner.nextLine();
		Map<String, Long> count = Arrays.stream(line.split("")).collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
		System.out.println(count.getOrDefault("+", 0L) -count.getOrDefault("-", 0L));
	}
}
