
import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        }
    }
} Main public static void main(String[] args) {
        try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        }
    } main {
        try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        }
    } try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        } {
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	} sc.hasNext() sc.hasNext sc {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	} int a  = 0; a 0 String str = sc.next(); str sc.next() sc.next sc for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		} {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		} char b = str.charAt(i); b str.charAt(i) str.charAt str i if(b=='+')
        				a++; b=='+' b '+' a++ a if(b=='-')
        				a--; b=='-' b '-' a-- a System.out.println(a) System.out.println System.out System System.out a String[] args args public class Main {
    public static void main(String[] args) {
        try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        }
    }
} public class Main {
    public static void main(String[] args) {
        try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        }
    }
} Main

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        try(Scanner sc = new Scanner(System.in)){
        	while(sc.hasNext()) {
        		
        		int a  = 0;
        		String str = sc.next();
        		
        		for(int i=0;i<4;i++) {
        			char b = str.charAt(i);
        			if(b=='+')
        				a++;
        			if(b=='-')
        				a--;
        		}
        		System.out.println(a);
        		
        	}
        }
    }
}
