import java.util.*;

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

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