    import java.util.*;
    public class Main {
     
    	public static void main(String[] args) {
    			
    		Scanner scan =new Scanner(System.in);
    		
    		char[]s =scan.next().toCharArray();
    		
    		int ans=0;
    		for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		}
    		
    		System.out.print(ans);

    		
     
    }
    }
// end  import java.util.*; util.* java public class Main {
     
    	public static void main(String[] args) {
    			
    		Scanner scan =new Scanner(System.in);
    		
    		char[]s =scan.next().toCharArray();
    		
    		int ans=0;
    		for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		}
    		
    		System.out.print(ans);

    		
     
    }
    } Main public static void main(String[] args) {
    			
    		Scanner scan =new Scanner(System.in);
    		
    		char[]s =scan.next().toCharArray();
    		
    		int ans=0;
    		for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		}
    		
    		System.out.print(ans);

    		
     
    } main {
    			
    		Scanner scan =new Scanner(System.in);
    		
    		char[]s =scan.next().toCharArray();
    		
    		int ans=0;
    		for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		}
    		
    		System.out.print(ans);

    		
     
    } Scanner scan =new Scanner(System.in); scan new Scanner(System.in) char[]s =scan.next().toCharArray(); s scan.next().toCharArray() scan.next().toCharArray scan.next() scan.next scan int ans=0; ans 0 for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		} char i s {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		} {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		} if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			} i=='-' i '-' {
    				--ans;
    			} --ans ans {
    				++ans;
    			} ++ans ans System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {
     
    	public static void main(String[] args) {
    			
    		Scanner scan =new Scanner(System.in);
    		
    		char[]s =scan.next().toCharArray();
    		
    		int ans=0;
    		for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		}
    		
    		System.out.print(ans);

    		
     
    }
    } public class Main {
     
    	public static void main(String[] args) {
    			
    		Scanner scan =new Scanner(System.in);
    		
    		char[]s =scan.next().toCharArray();
    		
    		int ans=0;
    		for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		}
    		
    		System.out.print(ans);

    		
     
    }
    } Main
    import java.util.*;
    public class Main {
     
    	public static void main(String[] args) {
    			
    		Scanner scan =new Scanner(System.in);
    		
    		char[]s =scan.next().toCharArray();
    		
    		int ans=0;
    		for (char i:s) {
    			if (i=='-') {
    				--ans;
    			}else {
    				++ans;
    			}
    		}
    		
    		System.out.print(ans);

    		
     
    }
    }
// end 