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

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			}
			 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 {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			}
			 System.out.println(ans);
		}
	}
} Main public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			}
			 System.out.println(ans);
		}
	} main {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			}
			 System.out.println(ans);
		}
	} try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

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

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			}
			 System.out.println(ans);
		} BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) new BufferedReader(
				new InputStreamReader(System.in)) String in = br.readLine(); in br.readLine() br.readLine br String chr[] = in.split(""); chr in.split("") in.split in "" int ans = 0; ans 0 for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			} String a chr {
				ans +=(a.equals("+")?1:-1);

			} {
				ans +=(a.equals("+")?1:-1);

			} ans +=(a.equals("+")?1:-1) ans (a.equals("+")?1:-1) a.equals("+") a.equals a "+" 1 -1 1 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 {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			}
			 System.out.println(ans);
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

			}
			 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 {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int ans = 0;
			for(String a: chr) {
				ans +=(a.equals("+")?1:-1);

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