import java.util.Scanner;

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

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