import java.util.Scanner;
public class Main{
	public static int Int(char a){
		int i=0;
		if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		}
		return i;
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a=scan.next();
		int ans=0;
		ans+=Int(a.charAt(0));
		ans+=Int(a.charAt(1));
		ans+=Int(a.charAt(2));
		ans+=Int(a.charAt(3));
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static int Int(char a){
		int i=0;
		if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		}
		return i;
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a=scan.next();
		int ans=0;
		ans+=Int(a.charAt(0));
		ans+=Int(a.charAt(1));
		ans+=Int(a.charAt(2));
		ans+=Int(a.charAt(3));
		System.out.println(ans);
	}
} Main public static int Int(char a){
		int i=0;
		if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		}
		return i;
	} Int {
		int i=0;
		if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		}
		return i;
	} int i=0; i 0 if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		} a=='+' a '+' {
		i=1;
		} i=1 i 1 {
			i=-1;
		} i=-1 i -1 1 return i; i char a a public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a=scan.next();
		int ans=0;
		ans+=Int(a.charAt(0));
		ans+=Int(a.charAt(1));
		ans+=Int(a.charAt(2));
		ans+=Int(a.charAt(3));
		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		String a=scan.next();
		int ans=0;
		ans+=Int(a.charAt(0));
		ans+=Int(a.charAt(1));
		ans+=Int(a.charAt(2));
		ans+=Int(a.charAt(3));
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a=scan.next(); a scan.next() scan.next scan int ans=0; ans 0 ans+=Int(a.charAt(0)) ans Int(a.charAt(0)) Int a.charAt(0) a.charAt a 0 ans+=Int(a.charAt(1)) ans Int(a.charAt(1)) Int a.charAt(1) a.charAt a 1 ans+=Int(a.charAt(2)) ans Int(a.charAt(2)) Int a.charAt(2) a.charAt a 2 ans+=Int(a.charAt(3)) ans Int(a.charAt(3)) Int a.charAt(3) a.charAt a 3 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static int Int(char a){
		int i=0;
		if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		}
		return i;
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a=scan.next();
		int ans=0;
		ans+=Int(a.charAt(0));
		ans+=Int(a.charAt(1));
		ans+=Int(a.charAt(2));
		ans+=Int(a.charAt(3));
		System.out.println(ans);
	}
} public class Main{
	public static int Int(char a){
		int i=0;
		if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		}
		return i;
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a=scan.next();
		int ans=0;
		ans+=Int(a.charAt(0));
		ans+=Int(a.charAt(1));
		ans+=Int(a.charAt(2));
		ans+=Int(a.charAt(3));
		System.out.println(ans);
	}
} Main
import java.util.Scanner;
public class Main{
	public static int Int(char a){
		int i=0;
		if(a=='+') {
		i=1;
		}
		else {
			i=-1;
		}
		return i;
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String a=scan.next();
		int ans=0;
		ans+=Int(a.charAt(0));
		ans+=Int(a.charAt(1));
		ans+=Int(a.charAt(2));
		ans+=Int(a.charAt(3));
		System.out.println(ans);
	}
}