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

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String linr = br.readLine();
		int ans = 0;

		for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		}
		System.out.println(ans);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String linr = br.readLine();
		int ans = 0;

		for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		}
		System.out.println(ans);
	}

} Main public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String linr = br.readLine();
		int ans = 0;

		for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		}
		System.out.println(ans);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String linr = br.readLine();
		int ans = 0;

		for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		}
		System.out.println(ans);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String linr = br.readLine(); linr br.readLine() br.readLine br int ans = 0; ans 0 for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		} int i = 0; int i = 0; i 0 i < linr.length() i linr.length() linr.length linr i++ i++ i {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		} {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		} if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			} linr.charAt(i) == '+' linr.charAt(i) linr.charAt linr 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 IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String linr = br.readLine();
		int ans = 0;

		for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		}
		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String linr = br.readLine();
		int ans = 0;

		for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		}
		System.out.println(ans);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String linr = br.readLine();
		int ans = 0;

		for (int i = 0; i < linr.length(); i++) {
			if (linr.charAt(i) == '+') {
				ans++;
			} else {

				ans--;
			}
		}
		System.out.println(ans);
	}

}
