import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		
		int result =0;
		// スペース区切りの整数の入力

		String[] fruits = a.split("");
        for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        }




System.out.println(result);


	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		
		int result =0;
		// スペース区切りの整数の入力

		String[] fruits = a.split("");
        for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        }




System.out.println(result);


	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		
		int result =0;
		// スペース区切りの整数の入力

		String[] fruits = a.split("");
        for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        }




System.out.println(result);


	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		
		int result =0;
		// スペース区切りの整数の入力

		String[] fruits = a.split("");
        for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        }




System.out.println(result);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc int result =0; result 0 String[] fruits = a.split(""); fruits a.split("") a.split a "" for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        } String fruit fruits {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        } {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        } if(fruit.equals("+")){result++;
}else{
result--;
} fruit.equals("+") fruit.equals fruit "+" {result++;
} result++ result {
result--;
} result-- result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		
		int result =0;
		// スペース区切りの整数の入力

		String[] fruits = a.split("");
        for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        }




System.out.println(result);


	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		
		int result =0;
		// スペース区切りの整数の入力

		String[] fruits = a.split("");
        for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        }




System.out.println(result);


	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.next();
		
		int result =0;
		// スペース区切りの整数の入力

		String[] fruits = a.split("");
        for (String fruit : fruits) {
                  if(fruit.equals("+")){result++;
}else{
result--;
}
        }




System.out.println(result);


	}
}