import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sr = new Scanner(System.in);
		String s = sr.next();
		int c = 0;
		for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		}
		System.out.println(c);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sr = new Scanner(System.in);
		String s = sr.next();
		int c = 0;
		for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		}
		System.out.println(c);
	}
} Main public static void main(String[] args){
		Scanner sr = new Scanner(System.in);
		String s = sr.next();
		int c = 0;
		for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		}
		System.out.println(c);
	} main {
		Scanner sr = new Scanner(System.in);
		String s = sr.next();
		int c = 0;
		for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		}
		System.out.println(c);
	} Scanner sr = new Scanner(System.in); sr new Scanner(System.in) String s = sr.next(); s sr.next() sr.next sr int c = 0; c 0 for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		} {
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		} if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			} 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 "+" {
				c++;
			} c++ c {
				c--;
			} c-- c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main{
	public static void main(String[] args){
		Scanner sr = new Scanner(System.in);
		String s = sr.next();
		int c = 0;
		for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		}
		System.out.println(c);
	}
} public class Main{
	public static void main(String[] args){
		Scanner sr = new Scanner(System.in);
		String s = sr.next();
		int c = 0;
		for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		}
		System.out.println(c);
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sr = new Scanner(System.in);
		String s = sr.next();
		int c = 0;
		for(int i = 0; i < s.length(); i++){
			if(s.substring(i, i + 1).equals("+")){
				c++;
			}else{
				c--;
			}
		}
		System.out.println(c);
	}
}