import java.util.Scanner;

class Main{

	static char[][] map;
	static int H;
	static int W;

	public static void main(String[] args) {



		Scanner sc = new Scanner(System.in);			//文字の入力
		//int N = sc.nextInt();
		String string = sc.next();
		int ans =0;
		for(int i= 0;i<4;i++){
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
}




class Pair implements Comparable{
	String from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	}
}


 import java.util.Scanner; Scanner java.util class Main{

	static char[][] map;
	static int H;
	static int W;

	public static void main(String[] args) {



		Scanner sc = new Scanner(System.in);			//文字の入力
		//int N = sc.nextInt();
		String string = sc.next();
		int ans =0;
		for(int i= 0;i<4;i++){
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
} Main static char[][] map; map static int H; H static int W; W public static void main(String[] args) {



		Scanner sc = new Scanner(System.in);			//文字の入力
		//int N = sc.nextInt();
		String string = sc.next();
		int ans =0;
		for(int i= 0;i<4;i++){
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	} main {



		Scanner sc = new Scanner(System.in);			//文字の入力
		//int N = sc.nextInt();
		String string = sc.next();
		int ans =0;
		for(int i= 0;i<4;i++){
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String string = sc.next(); string sc.next() sc.next sc int ans =0; ans 0 for(int i= 0;i<4;i++){
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		} int i= 0; int i= 0; i 0 i<4 i 4 i++ i++ i {
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		} {
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		} if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			} string.charAt(i) == '+' string.charAt(i) string.charAt string i '+' {
				ans++;
			} ans++ ans {
				ans--;
			} ans-- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args class Pair implements Comparable{
	String from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	}
} Pair String from; from int end; end @Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	} compareTo {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	} Pair otherpair = (Pair)other; otherpair (Pair)other return end - otherpair.end; end - otherpair.end end otherpair.end otherpair otherpair.end Object other other Comparable
import java.util.Scanner;

class Main{

	static char[][] map;
	static int H;
	static int W;

	public static void main(String[] args) {



		Scanner sc = new Scanner(System.in);			//文字の入力
		//int N = sc.nextInt();
		String string = sc.next();
		int ans =0;
		for(int i= 0;i<4;i++){
			if(string.charAt(i) == '+'){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
}




class Pair implements Comparable{
	String from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return end - otherpair.end;
	}
}



