import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		int ans = 0;
		for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		int ans = 0;
		for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		int ans = 0;
		for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	} main {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		int ans = 0;
		for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String W = in.readLine(); W in.readLine() in.readLine in int ans = 0; ans 0 for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		} int i=0; int i=0; i 0 i<W.length() i W.length() W.length W i++ i++ i {
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		} {
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		} if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			} '+' == W.charAt(i) '+' W.charAt(i) W.charAt W i {
				ans++;
			} ans++ ans {
				ans--;
			} ans-- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		int ans = 0;
		for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		int ans = 0;
		for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();

		int ans = 0;
		for(int i=0;i<W.length();i++){
			if('+' == W.charAt(i)){
				ans++;
			}else{
				ans--;
			}
		}
		System.out.println(ans);
	}
}
