import java.util.Scanner;
//import java.util.Arrays;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int plus = s.replace("-", "").length();
		System.out.println(plus - (4 - plus));
	}
} 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();
		int plus = s.replace("-", "").length();
		System.out.println(plus - (4 - plus));
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int plus = s.replace("-", "").length();
		System.out.println(plus - (4 - plus));
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int plus = s.replace("-", "").length();
		System.out.println(plus - (4 - plus));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int plus = s.replace("-", "").length(); plus s.replace("-", "").length() s.replace("-", "").length s.replace("-", "") s.replace s "-" "" System.out.println(plus - (4 - plus)) System.out.println System.out System System.out plus - (4 - plus) plus (4 - plus) 4 plus String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int plus = s.replace("-", "").length();
		System.out.println(plus - (4 - plus));
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int plus = s.replace("-", "").length();
		System.out.println(plus - (4 - plus));
	}
} Main
import java.util.Scanner;
//import java.util.Arrays;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int plus = s.replace("-", "").length();
		System.out.println(plus - (4 - plus));
	}
}
