import java.util.*;
    public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    char targetP = '+';
	    char targetM = '-';
	    int startNum = 0;
	    int counterP = 0;
	    int counterM = 0;
		
	    for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    }
	    System.out.println((startNum+counterP-counterM));
	}
    } import java.util.*; util.* java public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    char targetP = '+';
	    char targetM = '-';
	    int startNum = 0;
	    int counterP = 0;
	    int counterM = 0;
		
	    for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    }
	    System.out.println((startNum+counterP-counterM));
	}
    } Main public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    char targetP = '+';
	    char targetM = '-';
	    int startNum = 0;
	    int counterP = 0;
	    int counterM = 0;
		
	    for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    }
	    System.out.println((startNum+counterP-counterM));
	} main {
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    char targetP = '+';
	    char targetM = '-';
	    int startNum = 0;
	    int counterP = 0;
	    int counterM = 0;
		
	    for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    }
	    System.out.println((startNum+counterP-counterM));
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String numM = scan.next(); numM scan.next() scan.next scan char targetP = '+'; targetP '+' char targetM = '-'; targetM '-' int startNum = 0; startNum 0 int counterP = 0; counterP 0 int counterM = 0; counterM 0 for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    } char Ans numM.toCharArray() numM.toCharArray numM {
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    } {
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    } if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		} Ans==targetP Ans targetP {
		    counterP++;
			} counterP++ counterP if (Ans == targetM){
		    counterM++;
		} Ans == targetM Ans targetM {
		    counterM++;
		} counterM++ counterM System.out.println((startNum+counterP-counterM)) System.out.println System.out System System.out (startNum+counterP-counterM) startNum+counterP startNum counterP counterM String[] args args public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    char targetP = '+';
	    char targetM = '-';
	    int startNum = 0;
	    int counterP = 0;
	    int counterM = 0;
		
	    for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    }
	    System.out.println((startNum+counterP-counterM));
	}
    } public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    char targetP = '+';
	    char targetM = '-';
	    int startNum = 0;
	    int counterP = 0;
	    int counterM = 0;
		
	    for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    }
	    System.out.println((startNum+counterP-counterM));
	}
    } Main
import java.util.*;
    public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    char targetP = '+';
	    char targetM = '-';
	    int startNum = 0;
	    int counterP = 0;
	    int counterM = 0;
		
	    for(char Ans: numM.toCharArray()){
		if(Ans==targetP){
		    counterP++;
			}else if (Ans == targetM){
		    counterM++;
		}
	    }
	    System.out.println((startNum+counterP-counterM));
	}
    }
