import java.util.*;

public class Main{
	public static void main(String[] artgs){
		int res = 0;
		String s = new Scanner(System.in).nextLine();
		for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		}

		System.out.println(res);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] artgs){
		int res = 0;
		String s = new Scanner(System.in).nextLine();
		for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		}

		System.out.println(res);
	}
} Main public static void main(String[] artgs){
		int res = 0;
		String s = new Scanner(System.in).nextLine();
		for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		}

		System.out.println(res);
	} main {
		int res = 0;
		String s = new Scanner(System.in).nextLine();
		for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		}

		System.out.println(res);
	} int res = 0; res 0 String s = new Scanner(System.in).nextLine(); s new Scanner(System.in).nextLine() new Scanner(System.in).nextLine new Scanner(System.in) for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			if (s.charAt(i) == '+') res++;
			else res--;
		} {
			if (s.charAt(i) == '+') res++;
			else res--;
		} if (s.charAt(i) == '+') res++;
			else res--; s.charAt(i) == '+' s.charAt(i) s.charAt s i '+' res++ res res-- res System.out.println(res) System.out.println System.out System System.out res String[] artgs artgs public class Main{
	public static void main(String[] artgs){
		int res = 0;
		String s = new Scanner(System.in).nextLine();
		for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		}

		System.out.println(res);
	}
} public class Main{
	public static void main(String[] artgs){
		int res = 0;
		String s = new Scanner(System.in).nextLine();
		for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		}

		System.out.println(res);
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] artgs){
		int res = 0;
		String s = new Scanner(System.in).nextLine();
		for (int i = 0; i < s.length(); i++){
			if (s.charAt(i) == '+') res++;
			else res--;
		}

		System.out.println(res);
	}
}
