import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String inputStr=sc.nextLine();
		char[] aStr=new char[inputStr.length()];
		int i = 0;
		for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		}
		// 出力
		System.out.println(i);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String inputStr=sc.nextLine();
		char[] aStr=new char[inputStr.length()];
		int i = 0;
		for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		}
		// 出力
		System.out.println(i);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String inputStr=sc.nextLine();
		char[] aStr=new char[inputStr.length()];
		int i = 0;
		for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		}
		// 出力
		System.out.println(i);
	} main {
		Scanner sc = new Scanner(System.in);
		String inputStr=sc.nextLine();
		char[] aStr=new char[inputStr.length()];
		int i = 0;
		for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		}
		// 出力
		System.out.println(i);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String inputStr=sc.nextLine(); inputStr sc.nextLine() sc.nextLine sc char[] aStr=new char[inputStr.length()]; aStr new char[inputStr.length()] inputStr.length() inputStr.length inputStr int i = 0; i 0 for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		} int j = 0; int j = 0; j 0 j < inputStr.length() j inputStr.length() inputStr.length inputStr j++ j++ j {
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		} {
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		} aStr[j]=inputStr.charAt(j) aStr[j] aStr j inputStr.charAt(j) inputStr.charAt inputStr j if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			} aStr[j] == '+' aStr[j] aStr j '+' {
				i = i + 1;
			} i = i + 1 i i + 1 i 1 {
				i = i - 1;
			} i = i - 1 i i - 1 i 1 System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String inputStr=sc.nextLine();
		char[] aStr=new char[inputStr.length()];
		int i = 0;
		for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		}
		// 出力
		System.out.println(i);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String inputStr=sc.nextLine();
		char[] aStr=new char[inputStr.length()];
		int i = 0;
		for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		}
		// 出力
		System.out.println(i);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String inputStr=sc.nextLine();
		char[] aStr=new char[inputStr.length()];
		int i = 0;
		for(int j = 0;j < inputStr.length();j++){
			aStr[j]=inputStr.charAt(j);
			if(aStr[j] == '+'){
				i = i + 1;
			}else{
				i = i - 1;
			}
		}
		// 出力
		System.out.println(i);
	}
}