import java.util.Scanner;

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

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