import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s =sc.next();
      	int t = 0;	
     	for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        }
      	System.out.println(t);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s =sc.next();
      	int t = 0;	
     	for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        }
      	System.out.println(t);
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s =sc.next();
      	int t = 0;	
     	for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        }
      	System.out.println(t);
    } main {
    	Scanner sc = new Scanner(System.in);
      	String s =sc.next();
      	int t = 0;	
     	for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        }
      	System.out.println(t);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s =sc.next(); s sc.next() sc.next sc int t = 0; t 0 for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
        	if(s.charAt(i) == '+') t++;
          	else t--;
        } {
        	if(s.charAt(i) == '+') t++;
          	else t--;
        } if(s.charAt(i) == '+') t++;
          	else t--; s.charAt(i) == '+' s.charAt(i) s.charAt s i '+' t++ t t-- t System.out.println(t) System.out.println System.out System System.out t String[] args args public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s =sc.next();
      	int t = 0;	
     	for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        }
      	System.out.println(t);
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s =sc.next();
      	int t = 0;	
     	for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        }
      	System.out.println(t);
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s =sc.next();
      	int t = 0;	
     	for(int i = 0; i < 4; i++){
        	if(s.charAt(i) == '+') t++;
          	else t--;
        }
      	System.out.println(t);
    }
}