import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		long count=0;

		for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		}
		/*if(n<=8 && m<=8) {
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}*/
		//System.out.println((int)Math.ceil((n+m)/2.0));
		System.out.println(count);
	}
}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		long count=0;

		for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		}
		/*if(n<=8 && m<=8) {
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}*/
		//System.out.println((int)Math.ceil((n+m)/2.0));
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		long count=0;

		for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		}
		/*if(n<=8 && m<=8) {
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}*/
		//System.out.println((int)Math.ceil((n+m)/2.0));
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		long count=0;

		for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		}
		/*if(n<=8 && m<=8) {
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}*/
		//System.out.println((int)Math.ceil((n+m)/2.0));
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc long count=0; count 0 for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		} int i=0; int i=0; i 0 i<=3 i 3 i++ i++ i {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		} {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		} if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			} s.substring(i,i+1).equals("+") s.substring(i,i+1).equals s.substring(i,i+1) s.substring s i i+1 i 1 "+" {
				count++;
			} count++ count {
				count--;
			} count-- count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		long count=0;

		for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		}
		/*if(n<=8 && m<=8) {
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}*/
		//System.out.println((int)Math.ceil((n+m)/2.0));
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		long count=0;

		for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		}
		/*if(n<=8 && m<=8) {
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}*/
		//System.out.println((int)Math.ceil((n+m)/2.0));
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		long count=0;

		for(int i=0;i<=3;i++) {
			if(s.substring(i,i+1).equals("+")) {
				count++;
			}else {
				count--;
			}
		}
		/*if(n<=8 && m<=8) {
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}*/
		//System.out.println((int)Math.ceil((n+m)/2.0));
		System.out.println(count);
	}
}


